Indicator Cross over to find price MQL4
-
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.
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.