Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
automatic entry
Collapse
X
-
automatic entry
I've noticed this afternoon that soon as I turn a strategy on it enters directly into the market, I assume it is just pairing up with the position had it been on the whole day. Can you explain to me again why this is happening? It's as if they're strategy positions but they're actually going through and are real positions.
ThanksTags: None
-
Hello Pistolpete,
Thank you for your post.
Yes, this is the reasoning behind this fill. There is a setting you can change if you like it to behave differently.
Click on Tools > Options > Strategies tab, then NinjaScript tab.
You can change the setting "On Starting a real-time strategy" from "Imediately submit live working historical order" to "Wait until flat before executing live".
Click here for more information on the strategy settings.Ryan M.NinjaTrader Customer Service
-
Ryan,
I do have wait until flat before executing live clicked off.
Any other reason why this would be occurring?
Comment
-
if you go to options > Strategies > Ninjascript , check the otion where it says :
Wait until flat before executing live and then hit ok , I hope this helps
Comment
-
dont process historical
hi
You can control this by a parameter you can set:
process
publicenum tradingModes
{
HistoricalAndRealtime,
Realtime
}
private tradingModes tradingMode = tradingModes.HistoricalAndRealtime;
[Description("Trading Mode: HistoricalAndRealtime: Simulator Account (use for testing - will plot trades for historical data and execute strategy positions), Realtime:= Realtime Trading (will not process, execute or plot strategy trades for historical data - only realtime data)")]
[Category("General")]
public tradingModes TradingMode
{
get { return tradingMode; }
set
{
if (tradingMode != value)
{
Print("tradingMode changed " + value);
tradingMode = value;
}
}
}
protectedoverridevoid OnBarUpdate()
{
if ((tradingMode == tradingModes.Realtime) && (Historical))
{
return;
}
....
}
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
118 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
166 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
85 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
130 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
89 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment