...
if (BarsInProgress == 0)
{
if (ThisComplexTimeFrame0LogicTrue)
MTF1signal.Set(1);
}
if (BarsInProgress == 1)
{
if (ThisComplexTimeFrame1LogicTrue)
MTF2signal.Set(1);
}
if (BarsInProgress == 2)
{
if (ThisComplexTimeFrame2LogicTrue)
MTF3signal.Set(1);
}
...
if (BarsInProgress == 0)
{
if (MTF1signal[0] == 1 &&
MTF1signal[1] != 1 &&
MTF2signal[0] == 1 &&
MTF2signal[1] != 1 &&
MTF3signal[0] == 1 &&
MTF3signal[1] != 1 )
{
EnterLong();
}
}
...
While in a BarsInProgress = 0 event, is there a way to get dataseries values that where set during other BarsInProgress events? if I can't get this to work, I will likely substitute the dataseries with private variables, arrays, or queues.
Regards,
Whitmark

Comment