Key concepts in this example:
- Comparing values across multiple time frames
- Submitting orders to a non-primary bar object
Important related documentation:
NinjaTrader 8
- BarsArray
- BarsInProgress
- AddDataSeries()
- BarsSinceExitExecution()
- BarsRequiredToTrade()
- EnterLongLimit()
NinjaTrader 7
Import instructions:
NinjaTrader 8
- Download the file contained in this thread to your PC desktop
- From the Control Center window, select the menu Tools > Import > NinjaScript
- Select the downloaded file
NinjaTrader 7
- Download the file contained in this thread to your PC desktop
- From the Control Center window, select the menu File > Utilities > Import NinjaScript
- Select the downloaded file and click Import.