Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove Calculate On Bar Close

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

    Remove Calculate On Bar Close

    Hi,
    My script requires to set CalcuateOnBarClose to false and would not like to allow the end user to set it to true.

    Is there a way I can remove this from the user interface when end user right click into the indicator windows?

    Thanks in advance

    #2
    Hello ystan79,

    Thanks for your post.

    I am not aware of a means to remove it from the user interface however you can always set it after the user has changed it in OnBarUpdate().

    For example, on the first bar:

    if (CurrentBar == 0) CalculateOnBarClose = false;

    Everytime the script is loaded it will start on bar 0 and at that moment will be set to false (but obviously would not have impact until live data). If the user checks later they will see that it is set false in the user interface.

    You could also check to see if it is true in the OnStartUp() method and then set it to false.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    163 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    313 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X