First a general question:
1. Will the the following two statments generate different results in:
a) real time
b) back testing?
ADX(BarsArray[2], 14)[0] ADX(Closes[2], 14)[0]
2 a) Is it correctly understood that there will be a 1 bar difference between the following two print statments when backtesting?
if (BarsInProgress == 0)
{
Print( Closes[1][0] );
}
else if (BarsInProgress == 1)
(
Print( Closes[1][0] );
)
2 c) Can there be a difference in real time too between the two statements abvoe, let's say 1Tick?
I have compared my three bar series from the start of my tradingsession with the GetBar() method. This shows that after a while one series has less bars then the other two.
3 a) How can this be?
3 b) Is there a need to sync these bar series some how? If so, how can I do that?
(At 18:09 series B has one bar less than the other two series and loses another bar at 18:18

2010-03-04 18:03:00 | BarsInProgress: 2 Bar Series A: | Highs[0][0]: 1119,5| GetBar: 41 Bar Series B: | Highs[1][0]: 19,14| GetBar: 41 Bar Series C: | Highs[2][0]: 94| GetBar: 41 2010-03-04 18:06:00 | BarsInProgress: 2 Bar Series A: | Highs[0][0]: 1119| GetBar: 42 Bar Series B: | Highs[1][0]: 19,2| GetBar: 42 Bar Series C: | Highs[2][0]: 63| GetBar: 42 2010-03-04 18:09:00 | BarsInProgress: 2 Bar Series A: | Highs[0][0]: 1118,5| GetBar: 43 Bar Series B: | Highs[1][0]: 19,2| GetBar: [B][COLOR=Red]42[/COLOR][/B] Bar Series C: | Highs[2][0]: -1| GetBar: 43 2010-03-04 18:12:00 | BarsInProgress: 2 Bar Series A: | Highs[0][0]: 1118,5| GetBar: 44 Bar Series B: | Highs[1][0]: 19,21| GetBar: [B][COLOR=Red]43[/COLOR][/B] Bar Series C: | Highs[2][0]: -3| GetBar: 44 2010-03-04 18:15:00 | BarsInProgress: 2 Bar Series A: | Highs[0][0]: 1118,75| GetBar: 45 Bar Series B: | Highs[1][0]: 19,2| GetBar: [B][COLOR=Red]44[/COLOR][/B] Bar Series C: | Highs[2][0]: -8| GetBar: 45 2010-03-04 18:18:00 | BarsInProgress: 2 Bar Series A: | Highs[0][0]: 1118,75| GetBar: 46 Bar Series B: | Highs[1][0]: 19,2| GetBar: [COLOR=Red][B]44[/B][/COLOR] Bar Series C: | Highs[2][0]: 12| GetBar: 46
/Regards

Comment