Download MetaTrader 5

Parabolic SAR Indicator logic

To add comments, please log in or register
Post web links to other trader's signals and make profit
shahariar.cse
7
shahariar.cse 2015.04.05 14:57 

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. 

Biantoro Kunarto
14833
Biantoro Kunarto 2015.04.06 08:45  

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
   }
To add comments, please log in or register