Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StopOrderHandling in Playback101

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    StopOrderHandling in Playback101

    Hi, I have a strategy set to use ByStrategyPosition for stop order handling. I have the following line I the State == State.SetDefaults

    StopTargetHandling = StopTargetHandling.ByStrategyPosition;

    This works fine in the IB paper account but it's behaviour changes to PerEntryExecution in Palyback101 account.

    Can you suggest why?

    #2
    Hello sjmuk1,

    Thanks for your post.

    I have created a copy of the SampleMACrossOver strategy that comes default with NinjaTrader and added the StopTargetHandling = StopTargetHandling.ByStrategyPosition; call to State.SetDefaults.

    I added the strategy to the chart when connected to a live data feed connection and see the StopTargetHandling setting is set to ByStrategyPosition.

    If I disconnect from the live data feed connection, connect to Playback, and check the strategy in the Strategies window, I see the same behavior of StopTargetHandling being set to ByStrategyPosition.

    See this demonstration video: https://brandonh-ninjatrader.tinytak...M18yMDk1NTk2NQ

    I have also attached the script for this to my reply so you may test the steps seen in the video on your end using this sample script. When testing the attached strategy using the steps in the video, do you see a different behavior occur?

    Please let me know if I may assist further.
    Attached Files
    <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>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X