Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display Halt time remaining

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

    Display Halt time remaining

    1. I want to display the time remaining for a circuit breaker halt on my chart. Can you suggest code samples to accomplish this.

    2. I have tried numerous chart settings for tick charts and minute charts and it seems all settings do not indicate a Halt. No bars are shown during the halt. Is there a setting (or work around) that will visually show me the halt has occurred?

    I do not have a level II data feed.

    Thanks

    #2
    Hello CKnudsen,

    Thanks for opening the thread.

    To accomplish this goal, I would suggest to use a SessionIterator to get the times on the session for your data series that you attach an indicator to. You can also use an additional data series for a different TradingHours template, so you can get the times of RTH trading hours so they can be displayed on a chart using an ETH trading hours template.

    Since there would not be any data iterating at this time, OnBarUpdate() will not iterate. I would suggest to then implement a timer and a custom event into the indicator so it can display the time remaining when DateTime.Now is within a certain bounds. The SampleCustomEvents script on our forums demonstrates how a timer can be implemented in NinjaScript.

    I'll include links to publicly available documentation and with sample code and the sample script that implements a timer.

    SessionIterator - https://ninjatrader.com/support/help...oniterator.htm

    AddDataSeries() (To add another data series for displaying other sessions) - https://ninjatrader.com/support/help...dataseries.htm

    Multi Series NinjaScript documentation (Important read for Multi Series NinjaScripts) - https://ninjatrader.com/support/help...nstruments.htm

    SampleCustomEvents (Implements a timer for custom events) - https://ninjatrader.com/support/foru...ead.php?t=5965

    Please let me know if I can be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    563 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X