Parabolic SAR Indicator logic

 

How can i cheek a Dot of parabolic SAR if it's up of the candle or down of the candle in MQ4? As well as the value of 2nd,3rd.. consecutive dots.

Thanks in advance. 

 

This is the code for checking SAR value:

double Step = 0.02;
double Maximum = 0.2;
int Dot = 1;
double SARValue = iSAR(NULL,0,Step,Maximum,Dot);

if ( SARValue > High[Dot] )
   {
      // Up Value
   
   }

if ( SARValue < Low[Dot] )   
   {
   
      // Down Value
   }
Reason: