Hi . I’m trying to write a simple script to show when RSI crosses a moving average. The script I’ve written is
RSI(BARS=14) CrossesAbove MA(RSI(BARS=14), bars=14, STYLE=Exponential, CALC=Close)
When I use a showbar to verify the script there are numerous false signals. Can someone show what I've done wrong. I've tested on CSL.
Thanks Peter
Hi Peter,
Did you apply the Show Bar tool to the RSI? If so, your script won’t work there, as the Show Bar will use the RSI in it’s calculations (so you’re script would be an RSI of an RSI).
If you plan on placing a Show Bar to the RSI tool you’d need to adjust your script to the following:
CLOSE() CrossesAbove MA(BARS=14, STYLE=Exponential, CALC=Close)
On the chart it will look like the following:

Thanks, need to adjust my thinking when trying to write scripts