Script to automate strategy analyzer for various times and renko brick sizes

Is there a way to run strategy analyzer automatically (code) over various assets and time periods as well as renko brick size all in one shot?

Probably with a custom script, but a concern would be the continuous contracts. I’m not sure exactly how all that works since I normally just export the data and test it outside of Ninjatrader.

Thanks Walee, big fan!

Much of this is built into the Strategy Analyzer, without a script. In Optimization mode the Data Series section has an ‘Optimize data series’ option: tick it and the bar value (the brick size for Renko) gets a min/max/increment like any parameter. For several assets, create an Instrument List and select the list instead of one instrument; the Analyzer runs it as a basket and shows each instrument. For time periods, the Walk Forward Optimization mode steps the optimize and test windows for you. If you still need full automation beyond that, export results per run and combine them outside NinjaTrader.