Enabling NinjaScript strategy 'GoldenGoose6/249781957' : On starting a real-time strategy - StartBehavior=ImmediatelySubmitSynchronizeAccount EntryHandling=All entries EntriesPerDirection=5 StopTargetHandling=Per entry execution ErrorHandling=Ignore all errors ExitOnSessionClose=False SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On each tick IsUnmanaged=True MaxRestarts=4 in 5 minutes
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to prevent sync on strategy startup
Collapse
X
-
how to prevent sync on strategy startup
i sometimes have a open position left by a strategy. after i restart the ninjatrader, i dont want the sync to occur forcing the position to be closed. how can i do it?
Enabling NinjaScript strategy 'GoldenGoose6/249781957' : On starting a real-time strategy - StartBehavior=ImmediatelySubmitSynchronizeAccount EntryHandling=All entries EntriesPerDirection=5 StopTargetHandling=Per entry execution ErrorHandling=Ignore all errors ExitOnSessionClose=False SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On each tick IsUnmanaged=True MaxRestarts=4 in 5 minutesTags: None
-
Hello junkone,
Thanks for your post.
You could consider re-enabling your strategy using the 'Immediately Submit' start behavior.
Immediately Submit automatically submits working orders from when the strategy processed historical data, and assumes the strategy position and account position are where you want it when you enable the strategy. This is typically used to have a strategy resume a position after disabling/enabling.
If the strategy already had live orders running, the orders will resume with the new enablement of the strategy if they match the historically calculated orders. If the orders calculated from historical data do not match the live working orders, the live working orders will be cancelled and replaced by those calculated from historical data.
Start Behaviors: https://ninjatrader.com/support/help..._positions.htm
Strategy vs. Account Position: https://ninjatrader.com/support/help..._account_p.htm
Here is a forum thread that discusses more about Start Behaviors: https://forum.ninjatrader.com/forum/...<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Perr0Grande, Today, 07:09 AM
|
3 responses
29 views
0 likes
|
Last Post
![]()
by MiCe1999
Today, 05:40 PM
|
||
Started by SheriDi, 04-25-2025, 02:24 PM
|
3 responses
49 views
0 likes
|
Last Post
![]()
by SheriDi
Today, 05:02 PM
|
||
Started by aligator, Today, 11:32 AM
|
2 responses
16 views
0 likes
|
Last Post
![]()
by aligator
Today, 03:43 PM
|
||
Started by tradeologist, Today, 02:16 PM
|
2 responses
13 views
0 likes
|
Last Post
![]()
by tradeologist
Today, 02:48 PM
|
||
Started by kawansantos, Today, 10:29 AM
|
2 responses
14 views
0 likes
|
Last Post
![]()
by kawansantos
Today, 02:32 PM
|
Comment