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 NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    127 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X