bool AwesomeRedConfirmedVariable() { double AOone =MathAbs(iAO(_Symbol,_Period,1)); double AOtwo =MathAbs(iAO(_Symbol,_Period,2)); if(AOone < (AOtwo*0.90)) { return(true); } return(false); }
try this
Mc Temple:
Please edit your post and
use the code button (Alt+S) when pasting code
Lorentzos Roussos: try this
Your code | if(AOone < (AOtwo*0.90)) { return(true); } return(false); } |
Simplified | return AOone < AOtwo*0.90; |
William Roeder:
Increase Order after stoploss - MQL4 programming forum #1.3 2017.05.29
Your code | |
Simplified |
nice thank you

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I couldnt find out how to do this. So I made a code, that detected if the next value is 90% of the previosu candle it detects it as red. EA must be colorblind xd.