The strategy will be ran on a 10 Renko and I would like to call a 30 Renko for support in a entire.
I am new to this so I tried to build the strategy using the Strategy Builder and unlocking it to replace the AddDataSeries() with AddRenko() but it does not seem to work. Also would I be able to use this in a 'Playback Connection'?
See snip below.
private APZ APZ1;
private APZ APZ2;
}
else if (State == State.Configure)
{
AddRenko("ES 06-22", 30, MarketDataType.Last);
}
else if (State == State.DataLoaded)
{
APZ1 = APZ(Close, 2, 20);
APZ2 = APZ(Closes[1], 2, 20);
}
if ((Position.MarketPosition == MarketPosition.Flat)
&& (Close[0] > APZ1.Upper[0])
&& (Close[0] > APZ2.Upper[0]))
{
EnterLong(Convert.ToInt32(Contracts), @"E1Long");
}
Comment