NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 02-23-2008, 04:29 PM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default Strategy: Entering on one time frame and exiting on another

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:Other methods and properties of interest include:Import instructions for NinjaTrader 6.5.XXXX.X or greater:
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file
Attached Files
File Type: zip SampleMultiTimeFrameOrders.zip (3.2 KB, 316 views)
Last edited by NinjaTrader_Josh; 02-23-2008 at 11:13 PM.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi time frame syncronize chart with strategy ct Strategy Development 22 01-03-2008 12:22 PM
Accessing High value in a multi time frame strategy PrTester Strategy Development 4 05-02-2007 01:13 AM
Minute Time Frame Indicators in a TickTime Frame strategy Nathamus General Programming 5 04-10-2007 02:41 AM
Exiting and Re-Entering a Strategy guym Strategy Development 3 02-03-2007 07:13 AM
Exiting and Re-Entering a Strategy guym Strategy Analyzer 1 12-31-1969 06:00 PM


All times are GMT -6. The time now is 01:04 AM.