I have changed the OBU method a little:
if (BarsInProgress == 0) {
if(FirstTickOfBar) {
Print("**** 0 FTOB ****");
Print("Zero series time: " + Times[0][0]);
Print("One series time: " + Times[1][0]);
Print("isHistoricalBOT = " + isHistoricalBOT);
Print("Historical = " + Historical);
Print("Times[0][0] <= Times[1][0] = " + (Times[0][0] <= Times[1][0]));
Print("Last 0 bar: " + lastBars[0]);
Print("Last 1 bar: " + lastBars[1]);
Print("***************");
}
}
Zero series time: 7/30/2013 18:05:00
One series time: 7/30/2013 18:04:59
isHistoricalBOT = True
Historical = True
Times[0][0] <= Times[1][0] = False
Last 0 bar: False
Last 1 bar: False
***************
**** 0 FTOB ****
Zero series time: 7/30/2013 18:10:00
One series time: 7/30/2013 18:09:58
isHistoricalBOT = True
Historical = True
Times[0][0] <= Times[1][0] = False
Last 0 bar: False
Last 1 bar: False
***************
**** 0 FTOB ****
Zero series time: 7/30/2013 18:15:00
One series time: 7/30/2013 18:11:14
isHistoricalBOT = False
Historical = True
Times[0][0] <= Times[1][0] = False
Last 0 bar: True
Last 1 bar: True
Apologies for harping on this issue again - it's been a big headache for me in the past few months and I finally want to put it to rest. Thanks in advance for any input/thoughts on the matter.

Comment