I am having difficulty understanding exactly how intrabar data comes in. What I want to do is something like:
if Price > previous bar high do something
So if CalculateOnBarClose = true, I could write:
if(CalculateOnBarClose)
{
if(Close[0] > High[-1])
{ .... }
}
But if CalculateBarOnClose = fase, how do I do this?
I need to know how to access price on an intrabar basis. So far I have found the following possibilities but there are contradictions:
1. I need to add a data seies and in this way add granularity
2. I can use Bars.Instrument.MasterInstrument.FormatPrice(thisP rice)
3. I can use Gui.Chart.ChartControl.FormatYValue(price)
4. Time[0]
Can someone please help me? I need to find a way to access price intrabar.
Thank you very much.
Comment