The above tradescript is correct and no errors, and its working fine, while you are copy - pasting the above code make sure you have given proper spaces in between the scripts
i’m trying to write following code, some issue - all codes are getting converted to single line as shown in screen capture. i need to this code as EoD screener.
any fix for this issue?
SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
CROSSOVER(DIP(14), DIN(14)) = TRUE AND
CROSSOVER(A, B) = TRUE
Newline characters will throw an error in Pi Scanner. So if you have initially used multiple lines it will still be there in the script even though you cant see it.
It should work if you write the script again (discard the old one) in a single line
I got it solved. When you try to direct copy paste it gives error. So what i did is brought everything in single line and it worked in scanner … Below is what I am using now.
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)