Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy "enabled" behavior

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

    Strategy "enabled" behavior

    Hi there,

    Can someone give us a comprehensive look at what happens every time I click "enabled" on a disabled strategy?

    Is all previous strategy-related state wiped out, and all initializers executed again? Or is it possible that some local variables might be retained from the previous instance? I.e., is it doing a 'new' on the strategy class, or...?

    I understand (based on comment from someone else yesterday) that the code might not be reloaded by the classloader. Assuming the class itself hasn't changed.. I'm just curious about other behavior.

    On NT 6.5, I got used to always deleting/re-creating a new strategy every time, to get the "right" behavior.

    #2
    Hi heech, in NT7 we have now have strategy persistence so an instance of the strategy can be 'parked' with the enabled property set to false - http://www.ninjatrader.com/support/h...ed_strateg.htm

    If readd it fresh, it would be creating a new instance as in NT 6.5

    For newly introduced strategy vs account position considerations because of this concept please review this link:

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by timko, Today, 06:45 AM
    1 response
    7 views
    0 likes
    Last Post gaz0001
    by gaz0001
     
    Started by Waxavi, 04-19-2024, 02:10 AM
    3 responses
    41 views
    0 likes
    Last Post gaz0001
    by gaz0001
     
    Started by Max238, Today, 01:28 AM
    2 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Shansen, 08-30-2019, 10:18 PM
    25 responses
    949 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    8 responses
    42 views
    0 likes
    Last Post JonesJoker  
    Working...
    X