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 Mindset, Yesterday, 02:04 AM
        1 response
        15 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by agclub, 04-21-2024, 08:57 PM
        4 responses
        18 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Irukandji, Today, 04:58 AM
        0 responses
        3 views
        0 likes
        Last Post Irukandji  
        Started by fitspressoburnfat, Today, 04:25 AM
        0 responses
        2 views
        0 likes
        Last Post fitspressoburnfat  
        Started by Skifree, Today, 03:41 AM
        1 response
        5 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Working...
        X