I am new to pi and trying out the scanner. I am trying out the Big 3 Buy code given on https://zerodha.com/expert-advisors/code/big-3-buy on a live market watch but am getting script error message. For ready reference, the script is:
ADX(14) > 20 AND
DIP(14) > 20 AND RSI(CLOSE, 14) > 40 AND
REF(MACDSignal(13, 26, 9, SIMPLE), 1) < REF(MACD(13, 26, 9, SIMPLE), 1)
AND MACDSignal(13, 26, 9, SIMPLE) < MACD(13, 26, 9, SIMPLE)
The moment I remove the last line, the script works but otherwise does not.
Can someone please let me know what is wrong with the above script and why is it not working for me.
Also, would appreciate a comment if possible on the reliability of the results thrown up by these scripts.
keep all script in single line and give a single space between each script .this should be like this
ADX(14) > 20 AND DIP(14) > 20 AND RSI(CLOSE, 14) > 40 AND REF(MACDSignal(13, 26, 9, SIMPLE), 1) < REF(MACD(13, 26, 9, SIMPLE), 1) AND MACDSignal(13, 26, 9, SIMPLE) < MACD(13, 26, 9, SIMPLE)