Download MetaTrader 5

How to detect intersection of OBV, MFI y CCI indicators.

To add comments, please log in or register
juantrade 2015.06.16 22:42 

Hello all,

I'm trying to build an indicator that alerts me every time the indicators OBV, MFI y CCI intersect as shown in the image below in the blue squares:

The problem that I have is that indicator OBV always has different values when it touches the other two indicators, so I can't condition it to one specific value.

Has anybody had this problem? or does anyone know how to make it work?

Thanks in advance.

whroeder1 2015.06.17 00:42  
They never intersect at a bar, only between bars. Use standard cross code.
bool wasAbove = prevX < prevY;
bool isAbove  = currX < currY;
bool isCross  = wasAbove != isAbove;
diegomoedano 2015.09.23 02:32  
I wonder how would one code of buying and selling doing these confirmation as image ?
To add comments, please log in or register