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)
EDIT #1 As I will close trades with an additional EA, you can remove the "Hedge" portion of the code.
EDIT #2 I am looking for a second qualifier for opening trades during low volume times where Heikan Ashi can oscillate unfavorably. Any ideas would be appreciated.
11 freelance font une offre moyenne de $86 pour ce travail
Hello, I'd like to help you with your project. Please see my PM for more bid details and let me know if you are interested in working with me.
Hi there , I am a forex trader for 6 years now , and coding for over 4 years . I can help you with you`re coding needs. Cheers.