What is SAR's price for next dot and reversal dot?

 

Built in iSAR() Function only tell us price of existing dot.
There is no iSAR() Function with shift = -1 :)

My question is:
1. How can i know price for next dot? (assuming closing price will be at current price)
2. If current SAR dot touch by the price, to what price SAR dot will move?

I know i can track it using Parabolic.mq4, but it's really painful :)

(i'm still adapting using C language, usually i use only Delphi and assembler)

 

Calculation

SAR(i) = SAR(i-1)+ACCELERATION*(EPRICE(i-1)-SAR(i-1))

Where:
SAR(i-1) — is the value of the indicator on the previous bar;
ACCELERATION — is the acceleration factor;
EPRICE(i-1) — is the highest (lowest) price for the previous period (EPRICE=HIGH for long positions and EPRICE=LOW for short positions).


If the price crosses Parabolic SAR lines, the indicator turns, and its further values are situated on the other side of the price. When such an indicator turn does take place, the maximum or the minimum price for the previous period would serve as the starting point. When the indicator makes a turn, it gives a signal of the trend end (correction stage or flat), or of its turn.


http://www.metaquotes.net/techanalysis/indicators/parabolic_sar

 

Thank You phy!

double Step =0.02;
double Max =0.2;
double PrevSar =iSAR(NULL,0, Step, Max,1);
double EPrice =iLow(NULL,0,1);
// EPrice =iHigh(NULL,0,1); //on LONG (dot below price)
double CurSar = PrevSar + Step *( EPrice - PrevSar ); // no Max?
CurSar =NormalizeDouble( CurSar,Digits);
Comment("Current SAR is: ", CurSar );

I try, but most of the time it isn't working.

I think something still missing.

 

Change the "old" Parabolic.mq4 to Parabolic_sub.mq4 refer to https://www.mql5.com/en/forum/45921 and 'Parabolic SAR, Parabolic'

But the result is still disappointing. Maybe I should give up find the short way and start to modify the original file.

Reason: