• 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 ballboy11, Today, 01:04 PM
        0 responses
        1 view
        0 likes
        Last Post ballboy11  
        Started by ntbone, Today, 12:15 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by ballboy11, Today, 12:32 PM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by brownsfan019, Today, 12:04 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by x86231933, Today, 10:48 AM
        2 responses
        20 views
        1 like
        Last Post TopGunNote  
        Working...
        X