Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stop & target submission

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

    stop & target submission

    Hi,

    When "Edit Strategy", there is a "stop & target submission" property, which defaults to "perEntryExecution", I need to change it to "byStrategyPosition". I have 50 strategies that needs editing this field and other fields.

    Couple of question are:
    1. Can I change the default property when adding "New Strategy", like from "perEntryExecution" to "byStrategyPosition"?

    2. Is there a flag kind of variable I can use inside of a strategy, similar to
    CalculateOnBarClose, that I can use to change "stop & target submission" property to "byStrategyPosition" ?

    3. Any other idea of how to save my headache?

    Thank you!

    #2
    Yes, you can change the property. These are not supported methods but you can technically set this in you Initialize() method:

    StopTargetHandling = StopTargetHandling.PerEntryExecution;
    StopTargetHandling = StopTargetHandling.ByStrategyPosition;

    You can also right click on your strategy parameters and hit "set default" for the strategy.
    MatthewNinjaTrader Product Management

    Comment


      #3
      That is GREAT! Thank you Matthew!

      StopTargetHandling can not even be found in the NT7 help file. But it does compile.

      Comment


        #4
        Correct - we have not documented these properties as they are not supported. While they can technically be used, we cannot gurantee that these will not change in the future without notice.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        108 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        55 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        37 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        38 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        75 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X