Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart > Toolbar > IntervalsDisplay > String, change via code?

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

    Chart > Toolbar > IntervalsDisplay > String, change via code?

    Hello,

    I am looking for programmatic access to change the Display string shown on a chart's Toolbar IntervalsDisplay control.

    Code:
    [B]NinjaTrader.Gui.Tools.IntervalsDisplay[/B]


    I want to change the string based on events in my custom BarType, such as during OnDataPoint,
    and not just after the config gui is closed,
    i.e. setting the value of "Name" during a state will work when the bars are loaded,
    and the value of Name can be changed during OnDataPoint, (tested using Print() statements)
    but the string displayed in the Presentation layer does not change.

    I also wonder if I can change the Input string displayed for Indicators at the same time?

    Thanks.


    #2
    Hello balltrader,

    Thanks for your post.

    The Name property in State.Configure determines how the name of the BarsType will display in the Interval drop-down menu on chart.

    This property will also control how the name of the BarsType will display in the indicator label on a chart.

    You may see this by looking at the State.Configure section of the UniRenko custom BarsType script linked below.

    UniRenko: https://ninjatraderecosystem.com/use...nko-bartype-8/

    It is not supported to call the Name property outside of State.Configure, however, you may try changing the Name property dynamically in OnDataPoint() at your own discretion.

    Please let me know if I may assist further.


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X