FxTrader_: I would like to ask if there is any existing indicator or any way to find statistic Oscillators previous crossed.
Look back bars and checkint find_XX_cross(int iBeg=0){ for(;iBeg < Bars; ++iBeg){ bool wasAbove = xx(..., FAST, iBeg+1) > xx(..., SLOW, iBeg+1); bool isAbove = xx(..., FAST, iBeg) > xx(..., SLOW, iBeg); bool hasCrossed = isAbove != wasAbove; if(hasCrossed) return iBeg; } ///// int Last_Crossed = find_XX_cross(); int Prev_Cross[2]; Prev_Cross[0] = find_XX_cross(Last_Crossed+1); Prev_Cross[1] = find_XX_cross(Prev_Cross[0]+1);
Hi,
I would like to ask if there is any existing indicator or any way to find statistic Oscillators previous crossed.
More explanation in the attached image