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 Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-18-2010, 09:46 AM   #1
Dope63
Junior Member
 
Join Date: Dec 2009
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default Buy and Sell Orders

I am using Strategy Wizard to build a strategy on the “ES” with Range Bars and I’m not sure how to accomplish what I’m looking to do. This might be an easy issue.

At the close of the bar, a Market Order fires off a buy or sell order if all the conditions are met. When this happens, I am getting in 1 tick away from where I want to get in. So I want to change the Market Order to a Limit Order at the close of the bar when the order fires off.

So here is the question. At the close of the 0 bar when the order fires off a Limit Order, I can choose (when buying) the Bid Price, however is it on the new 0 bar open, or should it be on the 0 bar close + 1 tick?
Dope63 is offline  
Reply With Quote
Old 01-18-2010, 12:02 PM   #2
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

Dope63,

When you submit the order you do not know what the bid price would be on the next bar. All you can do for the limit order is submit it at a price relative to the information currently available to you on the closing bar. This means you do not have the open price and 0 refers to the closing bar.
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-18-2010, 01:07 PM   #3
Dope63
Junior Member
 
Join Date: Dec 2009
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Okay, so if I understand correctly.
  • At the end of the 0 bar all the conditions are true I will be at the Open of a new bar because I’m using Range bars.
  • So if it fires off a Limit order at the Bid that should be one tick lower than the open of the new bar Right? Of course if it doesn’t go down one more tick then it won’t fill.
Dope63 is offline  
Reply With Quote
Old 01-19-2010, 06:20 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,382
Thanks: 252
Thanked 967 times in 950 posts
Default

Dope63, correct orders are placed on the next bar then, with + / - a tick you should be able to get the open value of the new Range Bar.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-20-2010, 01:43 PM   #5
Dope63
Junior Member
 
Join Date: Dec 2009
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you!
Dope63 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
Issuing simultaneous buy and sell orders trader_rick Automated Trading 2 03-05-2009 11:17 AM
Script is running wild: buy - sell - buy - sell ... BillCh Automated Trading 4 02-06-2009 01:01 PM
Entering Buy/Sell Limit orders before Market opens scjohn SuperDOM and other Order Entry Windows 1 01-22-2009 08:56 AM
Stop Buy Sell orders and new bars snaphook Strategy Development 1 11-18-2008 11:38 AM
Last price and Buy/Sell Orders Column Shaking pipal SuperDOM and other Order Entry Windows 1 05-29-2008 10:26 PM


All times are GMT -6. The time now is 10:22 AM.