hi there,
i made the following code for screener to identify the major macd crossovers. the crossover must be higher than the half distance of the highest macd crossover of the last 1000 candles. But the screener does give any correct result (i believe it should). Where am i wrong?
impulse = ExponentialAverage[13](close)-ExponentialAverage[25](close)
trigger= ExponentialAverage[9](impulse)
c10= highest[1000](impulse)/2
c20= (impulse CROSSES UNDER trigger) and impulse > c10
SCREENER [c20]
thanx!!!
Hi,
this code would require more bars than you have available in proscreener (1000 for c10, with c10 first value needing at least 25 bars for impulse, and even the first value of impulse is way off anyway because an exponential average is initialised with a simple average for its first value and then needs more bars before converging towards its proper value, so all together much more than 1024 PRTpremium screener max history, or the classic 256screener max history for PRT complete.