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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X