I am trying to store the opening price into a dataseries and then access it for my entry conditions.
1. Can I use the time function to limit the time a value is stored into my dataseries?
e.g
if((ToTime(Time[0]) >= 160000 && ToTime(Time[0]) < 160030))
{
myDataSeries.Set( Open[0]);
}
2. Does this object store a static value or will it have to update OnBarUpdate?
3. If I use the Reset method to reset the dataseries at a certain time ( say close) will my data series be having a value of 0 or null?
I'm trying to enter the market if the price crosses a certain threshold from open:
if (Close[1] > myDataSeries[1] + trigger * TickSize);
{
EnterLong(Quantity, "Long A");
}
-Kiriru

Comment