Using the Mt4 built-in Heikan Ashi indicator, I would like it to create a market order when the Heikan Ashi changes candle color at candle close after a 60 second delay. Default MT4 indicator has DOWN candle as RED and UP candle as WHITE.
If a Heikan Ashi candle change occurs, the EA will wait 60 seconds, then open a market order in the direction of the previous candle close.
WHITE = LONG
RED = SHORT
User Defined Variables;
AutoTrade (TRUE/FALSE) Turns order entry on or off
LotSize: .01 Minimum
HedgeAllowed (TRUE/FALSE) If true, Can open trades either direction at same time if allowed by broker
MaxSpread (if exceeded = no trade)
Initial Take Profit (Self-explanatory)
Initial Stop Loss (Self-explanatory)
Number of retries (if TradeContextBusy)