Assume I have two instruments, both running on 30 min bars.
My question is, does instrument number two (BarsInProgress =1) always complete after instrument number one (BarsInProgress = 0)?
In other words, does
If (BarsInProgress = 1)
{
Print (Closes[1][0])
Print Closes [0][0])
}
return closing values that correspond to the same time stamp?
Similarly, would
If (BarsInProgress = 0)
{
Print (Closes[1][0])
Print Closes [0][0])
}
return a "current" value for the first instrument, but a value for the second instrument corresponding to the prior close time?
In general, I'm just looking for advice as to what BarsInProgress I want to use if I'm trying to reference prices for both instruments that correspond to the same time. Similarly, if I'm calling an indicator for each instrument, do I need to do that from within a particular If BarsInProgress =, and then use the BarsInProgress = 1 if comparing them, to make sure they correspond to the same time?
Hope this makes sense. Thanks
Comment