Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TradeSaber, Today, 07:18 AM
    0 responses
    7 views
    0 likes
    Last Post TradeSaber  
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    9 views
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    6 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    3 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    17 views
    0 likes
    Last Post SantoshXX  
    Working...
    X