仕事が完了した
指定
Hi, I want an EA that is similar to the screenshot attached, where you see
-the candle sticks only as heikin ashi
-the EMA trendline (default 20)
-same lines visible as the example screenshot with changing colors
Trade is opened when the candle bar of the heikin ashi crosses the EMA line (calculated not with PRICE_CLOSE but with PRICE_TYPICAL)
This script should have the following functions:
-ability to backtest
-editable EMA value
-automatic detection of timeframe (if I change the timeframe, the code should adjust automatically the heikinashi charts and trades)
-LotSize input - how much I want to use for trades, from 0.01 to 0.1 to 1 (of course I can set what I want e.g. 0.3 as well and so on)
-Automatic trade execution (only one trade in one direction - if we have a sell order ongoing and a buy order is incoming then close the sell position and open the buy position,and vice versa)
SourceCode included of course