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.