-
Close[IndicatorValues1[BarIndex1] == IndicatorValues2[BarIndex2]]
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 (2013) -
Look for a cross.
double aPrev = …(i+1), aCurr = …(i), bPrev = …(i+1), bCurr = …(i); bool wasUp = aPrev > bPrev, isUp = aCurr > bCurr, isCross = isUp != wasUp;
-
Why are you looking at past bars (200)? You can't trade past crosses.
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
Trying to find the cross over between the two RSI's, then the Price at the crossover.
This is what I've tried to do but comes with a 0 value, i am looking for a price value. Also i need a tolerance so that the difference could be close to 0 which is good enough.