Hi All,
Need some help with coding. I have an assistant EA that I use in my trading.
At the moment the signal is like below;
so if MACD is at overbought/sold and ADX is greater than the defined level then it opens a position.
Is it possible to add one more rule and say once candle closes check if ADX is less than previous ADX level. So basically I want it to open the position when ADX starts going down. I guess it should be something like if ADX (-1) < ADX (-2)
Any help would be much appreciated.
cheers,
mem
Need some help with coding. I have an assistant EA that I use in my trading.
At the moment the signal is like below;
Inserted Code
if(use_macd && use_adx) { if(adx>adx_level && macd>overbought) return(sell); if(adx>adx_level && macd<oversold) return(buy); }
so if MACD is at overbought/sold and ADX is greater than the defined level then it opens a position.
Is it possible to add one more rule and say once candle closes check if ADX is less than previous ADX level. So basically I want it to open the position when ADX starts going down. I guess it should be something like if ADX (-1) < ADX (-2)
Any help would be much appreciated.
cheers,
mem