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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X