protected override void Initialize()
{
SetStopLoss("Long", CalculationMode.Ticks, 10, false);
CalculateOnBarClose = true;
AddRenko("CL 10-12", 3, MarketDataType.Last);
AddRenko("CL 10-12", 4, MarketDataType.Last);
AddRenko("CL 10-12", 5, MarketDataType.Last);
}
protected override void OnBarUpdate()
{
if (Condition1)
{
if (BarsInProgress == 0)
{
Do this
}
}
if (Condition2)
{
if (BarsInProgress == 1)
{
Do this
}
}
if (Condition3)
{
if (BarsInProgress == 2)
{
Do this
}
}
if (Condition4)
{
if (BarsInProgress == 3)
{
Do this
}
}
}
The problem is that the strategy ONLY uses the primary bars object (Renko=2, that I enter in the strategy tab) though Condition1 is not true but Condition2,3or4 are true. Ideas?
Thanks to all and have a good day!

Comment