• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Wolf1, Today, 08:26 PM
        0 responses
        2 views
        0 likes
        Last Post Wolf1
        by Wolf1
         
        Started by pparmley, Today, 04:30 PM
        0 responses
        8 views
        0 likes
        Last Post pparmley  
        Started by tonynt, Today, 04:21 PM
        0 responses
        4 views
        0 likes
        Last Post tonynt
        by tonynt
         
        Started by williamzz, Today, 03:44 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Miguel_88, Yesterday, 06:41 PM
        2 responses
        26 views
        0 likes
        Last Post Miguel_88  
        Working...
        X