RSI of parabolic SAR:
RSI of parabolic SAR
Author: Mladen Rakic
mladen, very interesting...
RSI of parabolic SAR (amazing...)OBV of parabolic SARW_AD of parabolic SAR
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 :)