Entering on one time frame and exiting on another

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Strategy >

Entering on one time frame and exiting on another

Previous page Return to chapter overview Next page

You can submit orders to different bars objects. This allows you the flexibility of submitting orders to different timeframes. You can watch for trade conditions across different time frames and place orders on whichever one you want. This is useful for strategies that require more finesse in the exit than the entry. You can now enter trades on longer time frames and then monitor and exit your trade on a more granular time frame.

 

Key concepts in this example

Comparing values across multiple time frames
Submitting orders to a non-primary bar object

 

Important related documentation

BarsArray
BarsInProgress
AddDataSeries()
BarsSinceExitExecution()
BarsRequiredToTrade()
EnterLongLimit()

 

Import instructions

1.Download the file contained in this Help Guide topic to your PC desktop
2.From the Control Center window, select the menu Tools > Import > NinjaScript
3.Select the downloaded file

 

SampleMultiTimeFrameOrders_NT8.zip