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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    670 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X