View Full Version : Getting bar close price with a limit order.
Phill.f
02-11-2008, 03:22 PM
Hi,
I would like to be able to enter a limit order at exactly bar close price on fast timeframes . I do not have time to enter the price manually or even click the middle mouse button,so I need NT to calculate the price and enter it for me.
I have tried buy bid, sell ask but sometimes this is 1 tick off bar close price and I do not have time to adjust the order before the market starts moving away from my desired entry price and I do not want to use a chase.
What is the fastest and most accurate way of entering a limit order at bar close price with Ninja Trader ?
Thanks Phil
NinjaTrader_Jason
02-11-2008, 03:29 PM
Hello Phil,
You can create custom automated strategies using NinjaScript. You can create your strategy to submit orders at the close of the bar. More information can be found at the following link.
http://www.ninjatrader-support.com/HelpGuideV6/Overview39.html
NinjaTrader_Jessica
02-11-2008, 03:30 PM
Since you are taking your buy signals directly from the chart I would recommend using the chart trader to eliminate the extra step in the SuperDOM. This way you can enter the trade right where and when you see it. Here is a link with more information about Chart Trader.
http://www.ninjatrader-support.com/HelpGuideV6/ChartTraderDisplay.html (http://www.ninjatrader-support.com/HelpGuideV6/ChartTraderDisplay.html)
Phill.f
02-12-2008, 09:17 AM
Hi and thanks for your responses,
Well I'm not much of a programmer but I am willing to have a go, I tried this morning but I got stuck so a little push in the right direction would be greatly appreciated.
How would I code the following:
1 At bar close ,enter a limit order long at that bar close price, 2 contracts.
As long as I get the actual bar close price not the bid or ask that's the main thing.
If you can help me with that bit I think that will be able to figure out the stops and targets myself, and be on my way to being a super duper ninja trader coding specialist.:)
regards Phil.
NinjaTrader_Eamon
02-12-2008, 10:07 AM
Hi and thanks for your responses,
Well I'm not much of a programmer but I am willing to have a go, I tried this morning but I got stuck so a little push in the right direction would be greatly appreciated.
How would I code the following:
1 At bar close ,enter a limit order long at that bar close price, 2 contracts.
As long as I get the actual bar close price not the bid or ask that's the main thing.
If you can help me with that bit I think that will be able to figure out the stops and targets myself, and be on my way to being a super duper ninja trader coding specialist.:)
regards Phil.
Hello Phil,
Thank you for your post. You will need to set a tangible entry condition. For example close of 1 bar ago > than open. After you have an entry condition you can set your entry conditions. I have built one for you and provided screenshots to assist.
Phill.f
02-12-2008, 01:40 PM
thanks Eamon,
I think I am getting somewhere now.
However I have entered my strategy into the strategy grid by right click and choosing new strategy.
Then I have chosen my chart time frame the 133 tick and instrument er2 03-08.
When I press start in the strategy window I get an immediate fill and the price is some 10 to 12 points below current market price.
I have tried changing from a limit to a market order just to see what happens and it's the same.
any clue as to where I may be going wrong ?
Thanks Phil
NinjaTrader_Eamon
02-12-2008, 02:43 PM
Hi,
I would like to be able to enter a limit order at exactly bar close price on fast timeframes . I do not have time to enter the price manually or even click the middle mouse button,so I need NT to calculate the price and enter it for me.
I have tried buy bid, sell ask but sometimes this is 1 tick off bar close price and I do not have time to adjust the order before the market starts moving away from my desired entry price and I do not want to use a chase.
What is the fastest and most accurate way of entering a limit order at bar close price with Ninja Trader ?
Thanks Phil
Hi Phil,
You will want to set 'Wait until flat before executing live' as your default option on starting a real-time strategy. This will cause your strategy to wait until flat before executing any live orders. You can do this from the Control Center --> Tools --> Options --> Strategies tab --> NinjaScript tab.
More information can be found within our help guide here: http://www.ninjatrader-support.com/HelpGuideV6/StrategiesTab.html