PDA

View Full Version : Bars.GetBars()...


funk101
05-26-2007, 07:45 PM
Ok, I need to plot something on the first bar of the session. I'm using:

int myX = CurrentBar - Bars.GetBar(new DateTime(2007, 5, 26, 8, 30, 0));
DrawText("myTag", "Hello World", myX, Close[0], Color.Black);

First of all, is this the best/only way to do that? If so, I'm getting the firstbar that exists on the *complete* chart, which is like one week back. If I scroll to the left all the way I see my plot.
My session starts at 8:30am.

funk101
05-26-2007, 07:53 PM
I'll guess I'll use that.