PDA

View Full Version : Strategy: Entering on one time frame and exiting on another


NinjaTrader_Josh
02-23-2008, 05:29 PM
Reference sample for NinjaTrader 6.5.XXXX.X or greater.

As of NinjaTrader Version 6.5, 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.

The attached reference sample demonstrates the following concepts:

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

Important methods and properties include:

BarsArray (http://www.ninjatrader.com/support/helpGuides/nt7/barsarray.htm)
BarsInProgress (http://www.ninjatrader.com/support/helpGuides/nt7/barsinprogress.htm)

Other methods and properties of interest include:

Add() (http://www.ninjatrader.com/support/helpGuides/nt7/add3.htm)
EnterLongLimit() (http://www.ninjatrader.com/support/helpGuides/nt7/enterlonglimit.htm)

Import instructions for NinjaTrader 6.5.XXXX.X or greater:

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