You can see an example of the OnMarketData override here: https://ninjatrader.com/support/help...b=OnMarketData
OnMarketData is called for market data events, you could execute that code from that override if you wanted to break away from the renko series and OnBarClose. That would only work in realtime so if you need to backtest the strategy this likely is not the best solution as TickReplay would be required.
Otherwise for an example of a multi series strategy you can see the SampleMultiInstrument or SampleMultiTimeFrame strategies that come with NinjaTrader. Because this is a more complicated subject I would suggest to read the multi series documentation to better understand using multiple series to control logic: https://ninjatrader.com/support/help...lightsub=multi
After adding a secondary series you would execute the code you had provided from a BarsInProgress condition:
if(BarsInProgress == 1) { }
I look forward to being of further assistance.
Leave a comment: