Firstly, I'm fairly a novice with MQL4. My indicator 'template' is based on EABuilder... most of what I do is swapping out conditions and customising the variables a bit, but never really writing code from scratch.
My issue is that when I'm adding if() conditions to a buffer, it all has to occur on the same candle for the indicator to alert. What I want to do, for example, is: "If MACD crosses signal line... wait until the ADX+/- also cross in the same direction... whenever it does (or if during the next x candles), then alert."
Is there any way to write conditions across multiple candles like this? Any kind of template I may be able to go off of? The MQL4 "tutorial" is helpful, but isn't much of a tutorial and I don't really have the time to learn MQL4 from the ground up.
EABuilder is a great start but it means I have to do 3-4 custom indicators when ideally, I should be able to code my conditions all into one. Any ideas would be helpful. Thanks!
To add comments, please log in or register