Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where should I place TraceOrders

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

    Where should I place TraceOrders

    If I change the strategy code and refresh the chart where the strategy is enabled, it asks me if I want to proceed and after answer yes, the new compiled code comes in effect making debugging of a strategy relatively easy.
    But if I toggle TraceOrders = true in the Set State.SetDefaults block it doesn't toggle unless I remove the strategy and reinsert it.
    Because of it I went against the manual recommendation and moved it to the State.Configure block with satisfaction. I don't get any error doing so, it just works perfectly.

    What are the implication of this change?
    Gio

    #2
    Hello giogio1,

    The F5 reload system only works for OnBarUpdate code. Changes to defaults or the class of the script require removing and re-adding it to see those updates. I cannot say what the implications of the change you made are. We can only suggest using what is documented and correct per the API guidelines.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X