Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Resetting values?

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

    Resetting values?

    How do I reset a stored value after each entree?

    #2
    relogical, you could for example check your position in OnBarUpdate() or OnPositionUpdate() and then reset your tracking variable to a default value.



    Another approach would be doing that directly in the condition then where the entry triggered...

    if (someCondition)
    {
    EnterLong()
    trackingVar = 0;
    }

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    151 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    303 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    175 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X