I use MTF and I'd like to get Current day open price or 3 days ago open price...etc
When I use 15 min chart i get current open + 1 bar open price.
When i use daily chart everything is working well. I see the correct price in tha data box
Add(PeriodType.Day, 1);
if (Bars.GetDayBar(2) != null && BarsInProgress == 0)
{
byestopen = Bars.GetDayBar(2).Open; // B. yest. open
}
if (Bars.GetDayBar(2) != null && BarsInProgress == 1)
{
dailyopen = Open[0];
}
I get 1,3064 open price
Is it correct?
What's wrong in my view? I use fxcm demo...
thx
w.
Comment