Forum

ZIGZAG support and resistance issue

Hi I found this code base on ZIGZAG support and resistance good to complete my strategy. extern int ExtDepth=12; extern int ExtDeviation=5; extern int ExtBackstep=3; int start() { int n= 0 , i; double p0= 0 , p1= 0 , p2= 0 ; i= 0 ; while (n< 2 ) { if (p0> 0 ) {p2=p1;

calculate indicator value in expert

Hi I'm trying to manipulate an indicator value, For example: if (a=(iRSI(NULL,0,14,PRICE_CLOSE,0)>75)) { int b=a-3 } The problem is that a returns true and not the value of the indicator (75). how to get the value of the indicator ? I know I can try: if (a=(iRSI(NULL,0,14,PRICE_CLOSE,0)>75-3))