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,
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 :)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
RSI of parabolic SAR:
RSI of parabolic SAR
Author: Mladen Rakic