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 GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,279 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        19 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Tim-c, Today, 02:10 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        5 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        51 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Working...
        X