Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by 00nevest, Today, 02:27 PM
    0 responses
    1 view
    0 likes
    Last Post 00nevest  
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Started by Jonker, Today, 01:19 PM
    0 responses
    2 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    9 views
    0 likes
    Last Post futtrader  
    Working...
    X