I'm running the following code in a 1 minute chart of "emc":
debugPrintln(rsi(14,sym("spy", inv(15)),-2));
It prints always prints out the rsi for "spy" from 2 1-minute bars ago rather than the rsi for "spy" from 2 15-minute bars ago. How do I get it to give me the 15-minute rsi even though I'm running the script on a 1-minute chart of a different symbol??
If I try debugPrintln(rsi(14, sym("spy") | inv(15),-2)); , I just get a null output.
Thanks in advance,
Dave
debugPrintln(rsi(14,sym("spy", inv(15)),-2));
It prints always prints out the rsi for "spy" from 2 1-minute bars ago rather than the rsi for "spy" from 2 15-minute bars ago. How do I get it to give me the 15-minute rsi even though I'm running the script on a 1-minute chart of a different symbol??
If I try debugPrintln(rsi(14, sym("spy") | inv(15),-2)); , I just get a null output.
Thanks in advance,
Dave
Comment