1. Is Time stamp (using Time) is the time of the end bar or start bar Time?(according what I see is the end of bar time)
2. Indicator run twice in historical data
When I ran historical data it seems that OBU is trig twice why?
for test I just create indicator that do nothing and insert a print in the beginning of its OnBarUpdate()
protected override void OnBarUpdate()
{
Print("KobiEMA: CurrentBar = " + CurrentBar + " " + "Open = " + Open[0] + " " + "Close = " + Close[0] + " " + "High = " + High[0] + " " + "Low = " + Low[0] + " " + Time[0].ToString());
}
please see the following log after filtering
$ cat /cygdrive/c/Users/Kobi45/Documents/Log/output.txt | grep "16:31:00"
KobiTest: CurrentBar = 60 Open = 176.67 Close = 176.78 High = 176.81 Low = 176.66 29/10/2013 16:31:00
KobiTest: CurrentBar = 450 Open = 177.2 Close = 177.15 High = 177.21 Low = 177.13 30/10/2013 16:31:00
KobiTest: CurrentBar = 840 Open = 175.83 Close = 175.79 High = 175.86 Low = 175.77 31/10/2013 16:31:00
KobiTest: CurrentBar = 1230 Open = 175.91 Close = 175.94 High = 175.94 Low = 175.86 01/11/2013 16:31:00
KobiTest: CurrentBar = 1560 Open = 176.69 Close = 176.69 High = 176.74 Low = 176.66 04/11/2013 16:31:00
KobiTest: CurrentBar = 1950 Open = 176.14 Close = 176.18 High = 176.23 Low = 176.13 05/11/2013 16:31:00
KobiTest: CurrentBar = 2340 Open = 177.03 Close = 177.05 High = 177.13 Low = 177 06/11/2013 16:31:00
KobiTest: CurrentBar = 2730 Open = 177.5 Close = 177.44 High = 177.56 Low = 177.44 07/11/2013 16:31:00
KobiTest: CurrentBar = 60 Open = 176.67 Close = 176.78 High = 176.81 Low = 176.66 29/10/2013 16:31:00
KobiTest: CurrentBar = 450 Open = 177.2 Close = 177.15 High = 177.21 Low = 177.13 30/10/2013 16:31:00
KobiTest: CurrentBar = 840 Open = 175.83 Close = 175.79 High = 175.86 Low = 175.77 31/10/2013 16:31:00
KobiTest: CurrentBar = 1230 Open = 175.91 Close = 175.94 High = 175.94 Low = 175.86 01/11/2013 16:31:00
KobiTest: CurrentBar = 1560 Open = 176.69 Close = 176.69 High = 176.74 Low = 176.66 04/11/2013 16:31:00
KobiTest: CurrentBar = 1950 Open = 176.14 Close = 176.18 High = 176.23 Low = 176.13 05/11/2013 16:31:00
KobiTest: CurrentBar = 2340 Open = 177.03 Close = 177.05 High = 177.13 Low = 177 06/11/2013 16:31:00
KobiTest: CurrentBar = 2730 Open = 177.5 Close = 177.44 High = 177.56 Low = 177.44 07/11/2013 16:31:00
Comment