I am trying to add a script as below in scanner but its throwing an error while loading as “Your script generated error”. I dont think this error is due to no match found as error is displayed imidiatly without scanning for match.
LAST > REF(HIGH, 1) AND RSI(CLOSE, 14) > 20
But when the scrip is one line without AND operator "LAST > REF(HIGH, 1) " , this is working fine and it takes some time to scan.
Does it mean we cant add the same script that we added while backtesting as scanner scipt ??
If yes how do i do it ? Please help.
1 Like
I have tried the same above script
LAST > REF(HIGH, 1) AND RSI(CLOSE, 14) > 20
in a scanner with minute , 1 barinterval for 5000 candle history by loading both NFO & NSE scripts and loaded the scanner it is working fine and alerts are generated.
Please Check your values and try by adding 5 or more scripts in scanner.
And if you are using the above script in backtest make sure sell column is not empty
You can place sell as below code
LAST < REF(HIGH, 1) AND RSI(CLOSE, 14) < 20
I tried the above in backtest with banknifty- minute -5000 barhistory and it is working fine with generating alerts
Thank you very much for the response, it was my fault. I was adding the lines in new line which was getting removed by software and no space was added in between two lines. After adding a space between two it started working… Thank you again…