Indicators: RSI of parabolic SAR

To add comments, please log in or register
Automated-Trading
147176
Automated-Trading  

RSI of parabolic SAR:

RSI of parabolic SAR

RSI of parabolic SAR

Author: Mladen Rakic

zemo
401
zemo  

mladen, very interesting...

RSI of parabolic SAR  (amazing...)

OBV of parabolic SAR

W_AD  of parabolic SAR 

zemo
401
zemo  

mladen,

the RSI of SAR, fails (fails to plot) if you are in timeframe W1 or M1

and don't give any error log in the "diary tab"


Mladen Rakic
133109
Mladen Rakic  
zemo:

mladen,

the RSI of SAR, fails (fails to plot) if you are in timeframe W1 or M1

and don't give any error log in the "diary tab"


That happens because built in SAR is used for calculation and it suffers from the same issue as any other built in indicator. It sets values at the start of the calculation to EMPTY_VALUE , so, when you have too little data (like on weekly or monthly data) built in SAR fails to provide enough valid data for normal calculation and then the calculated RSI is a constant 0

Add this to start of loop :

      if (sar[i]==EMPTY_VALUE) sar[i]=close[i];

And then you shall get an approximation - like these :


Or replace the built in SAR with a better SAR calculation :)

To add comments, please log in or register