How can I get a second Symbols (not current Symbol) previous days daily close in main funcition?
I try e.g. for SPY (being not current symbol):
var indexclose = close(-1, 1, sym ("SPY"),inv ("D"));
This just gives me the previous days daily close for the current symbol and not for SPY.
Can anybody help? Thanks!
I try e.g. for SPY (being not current symbol):
var indexclose = close(-1, 1, sym ("SPY"),inv ("D"));
This just gives me the previous days daily close for the current symbol and not for SPY.
Can anybody help? Thanks!
Comment