"Your script Generated Error" when using EA codes on PI Scanner

Hi,

The Pi Scanner generates " Your script generated an error" message while trying to load the BUY or SELL script ideas copied from the EA link below:

https://zerodha.com/expert-advisors/

How can I use the published  EA scripts on the Pi scanner?

Thanks

------------------------------------------------------------------------------

Hi AlgoGeek,

Follow up to your response.

I copied the below EA Script on Pi Scanner


ON THE SCANNER, the pasted script looks like this:


BUT STILL getting the error : " Your script generated error"

Please follow up.

when you are copy paste into scanner , in the script column will ignore the spaces and merges the letters, please make sure you have entered with proper spaces, it works fine.

As per the above use the below modifited code , i have verifyed in scanner and it is working (the problem was with “AND” operator last line)

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)

1 Like

Hi AlgoGeek,
Thanks for your time.
In response to your answer , I have added further info below my question.
Please check and let me know , What I need to do?

check above modified answer

Hi,
With your modified script, it is working fine now
Great Work. Thanks again

Hi Algo,
I want to do medium term trading and not the intra day one. Can you please suggest as to how to select day charts in Scanner instead of the minutes/hourly one? For example for the trend i want to check for the past few days and not past few hrs and for signal for the daily candlestick chart and the not the hourly one. Please guide.

Thanks,
Neeraj

Hey friends, I am getting same error in following

SET A = CLOSE-LOW
SET B = OPEN-CLOSE
SET C = HIGH-OPEN
TREND(CLOSE,10)=UP
A>=10*B
AND C/B<1
AND REF(CLOSE,1)<REF(OPEN,1) AND
OPEN<REF(CLOSE,1)

can you please guide?

Refer Point 5 on this link.

hello sir can u help me with team viewer in making a scanner …coz i am adding below code for scanning bt showing error…pls help sir …bull flag code
CLOSE <= REF(CLOSE,1) AND REF(CLOSE,1) > REF(CLOSE,2) AND
REF(CLOSE,2) > REF(CLOSE,3) AND
REF(CLOSE,3) >= REF(CLOSE,4) AND
ABS((REF(HIGH,1) - REF(LOW,1))) >= ABS((REF(HIGH,3) - REF(LOW,3)) * 2 AND
DIP(14) > DIN(14) AND
REF(ADX(14),1) > REF(ADX(14),2) AND
REF(ADX(14),2) > REF(ADX(14),3) AND
REF(VOLUME,1) > REF(VOLUME,2) AND
REF(VOLUME,2) > REF(VOLUME,4) AND
REF(VOLUME,1) > REF(VOLUME,4) * 2