SAR dots

 

Hi,

Can someone help me to code:

How to count SAR dots on the chart in your EA?

Little details will be helpful as I am new to MQL coding.

Thanks in advance

 

There will be the same number of dots as bars - can you rephrase the question?

-BB-

 
BarrowBoy wrote >>

There will be the same number of dots as bars - can you rephrase the question?

-BB-

Thanks for the response.

Actually my EA sets stoploss as per SAR dot but mostly gets hit if the dot is only one. So what I am trying to do is as follows:

If SAR dot is only one once trade is opened

STOPLOSS = iSAR(NULL,PERIOD_M1,0.10,0.11, 0);
else

STOPLOSS = iSAR(NULL,PERIOD_M1,0.10,0.11,1);

Couple more questions if you could please:

I am testing my EA for five minute scalping during NY and London session overlap and using SAR, MACD and ADX as filters.

Shall I take following ADX settings or default which is 14 ?

ADX0 = iADX(NULL,PERIOD_M1,9,PRICE_CLOSE,MODE_MAIN,0);

Or you recommend something else?

Because when I look visually entry of trade does not seem right.

Thanks once again

Reason: