Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Entry at open
Collapse
X
-
tjendra,
When you start your strategy again it goes through all the historical data and calculates out everything one more time. If you want to start fresh on a new day I suggest you run your strategies with ExitOnClose = true so even if you stop your strategy, as it calculates it historically it will know that at the end of the session everything should be flat.
See this tip for how to use TraceOrders: http://www.ninjatrader-support2.com/...ead.php?t=3627
Output will show up in the Output Window.
-
tjendra, did you check the TraceOrders output where it originated from?
Leave a comment:
-
I did not want that order. In fact I am confused why that order was entered, that's why this query in the first place. Coz I stop the strategy so that it will start up in a fresh new state like you said. And I got CalculateOnBarClose = true set, so why did it enter on market open? Shouldn't it at least wait until the first bar of the market open closes?Originally posted by NinjaTrader_Josh View Posttjendra,
WaitUntilFlat means no trades will be made till the strategy is in a flat state.
Cancel orders will cancel all orders on strategy stop.
If you want that order at market do not shutdown the strategy. If you stop your strategy it will start up in a fresh new state. It will NOT know of anything it did beforehand.
Leave a comment:
-
tjendra,
WaitUntilFlat means no trades will be made till the strategy is in a flat state.
Cancel orders will cancel all orders on strategy stop.
If you want that order at market do not shutdown the strategy. If you stop your strategy it will start up in a fresh new state. It will NOT know of anything it did beforehand.
Leave a comment:
-
So if I choose "Wait until Flat" selected in Tools->Options->Strategies->NinjaScript, then that entry on open wouldn't occur?Originally posted by NinjaTrader_Josh View Post1. The last sentence in my previous response. There is no mapping back to prior states. Leave NT running.
2. See same sentence earlier. If the order was already placed on the prior bar and active it will fill on the open of the next bar. If the order was only placed on the opening bar then it will fill on the following bar.
Also, I had "Cancel strategy orders on strategy termination" checked. Shouldn't that cancel any pending orders when I shutdown NT?
Leave a comment:
-
1. The last sentence in my previous response. There is no mapping back to prior states. Leave NT running.
2. See same sentence earlier. If the order was already placed on the prior bar and active it will fill on the open of the next bar. If the order was only placed on the opening bar then it will fill on the following bar.
Leave a comment:
-
What about this 2 queries then?Originally posted by NinjaTrader_Josh View PostIf you shutdown NinjaTrader and restart you will see different results. Rerunning calculations historically will not necessarily be the same as if it were evaluated in real-time. http://www.ninjatrader-support.com/H...TimeVsBacktest
If you shutdown Ninja you may or may not get that market open order depending on the order type you submitted and if you had "immediately submit" selected in Tools->Options->Strategies->NinjaScript.
1. Is it possible that the order was pending from yesterday close and it execute on market open. If I shut off the strategy, and load up the strategy before market open, should the strategy still be holding this pending order?
2. Also, I have CalculateOnBarClose = true set. So should it wait for the opening bar to finish calculating before entry? If so, how can it enter on the open?
Leave a comment:
-
If you shutdown NinjaTrader and restart you will see different results. Rerunning calculations historically will not necessarily be the same as if it were evaluated in real-time. http://www.ninjatrader-support.com/H...TimeVsBacktest
If you shutdown Ninja you may or may not get that market open order depending on the order type you submitted and if you had "immediately submit" selected in Tools->Options->Strategies->NinjaScript.
Leave a comment:
-
Entry at open
Hi, when I was running live trading, I was getting some entry on market open. It seems like the order was pending from yesterday close and it execute on market open. If I shut off the strategy, and load up the strategy before market open, would the strategy still hold this pending order?
The other weird thing is I close the strategy and restart it again during the middle of a trading session, and it doesn't show the entry at open anymore, which means the entry was incorrect to begin with.
Also, I have CalculateOnBarClose = true set. So should it wait for the opening bar to finish calculating before entry? If so, how can it enter on the open?Last edited by tjendra; 04-30-2009, 09:09 AM.Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
14 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
119 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
172 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
88 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
131 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Leave a comment: