privateint GetBarsAgoIdx(DateTime dt)
{
int rc = CurrentBar - Bars.GetBar(dt);
return rc;
}
Pretty simple.
I have a chart with my strat dropped on it and this function get's called with the following info taken from the immediate window in
vstudio.
?dt.ToString()
"8/26/2016 2:32:20 PM"
?Bars.GetBar(dt);
282114
?CurrentBar
3
This means I get a -282111. How is this possible? I'm running 4-Range on ES. No way there's 300,000 bars since Friday. What on earth am I missing?
Thanks ... Ed
Comment