What is Close[0] (or Time[0])?
1 replies
avys
1 year ago #288129
Hello. I am new to strategyquantX, so forgive me if the question is trivial.
On AlgoWizard, it says that every rule is triggered on bar open. So, what will be the value of close[0]? In general, is index 0 the last bar closed or the bar that was just open (and is yet incomplete)?
If index 0 is the index of the last completed bar, why all the default expressions in AlgoWozard refer to [1]?
Thanks
Avy
0
Tomas Matejka
1 year ago #288142
Avy,
it depends on backtesting engine used. It is most commonly used with the TradeStation / Multicharts where it refer to the latest closed bar. Still, trading operation are being executed on next bar open (refering to last bar close – [0])
0
Viewing 1 replies (of 1 total)