Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Highlight overnight market on chart

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

    Highlight overnight market on chart

    Is there a way to easily highlight the overnight session on a chart with some kind of highlighting/mask on a chart?

    Thanks

    #2
    Hello dmking,

    Thanks for your post.

    Manually, you can use the drawing tool (Access through the chart "pencil" icon) Region HighLight X. When selected left click to start the region, move the mouse and click again to draw the region. Once done, double left click on the region to open the region properties. In the region properties (besides changing the colors, opacity, the outline, etc.) you can change the specific dates and times which you can then specify the begin and end session times. You can create as many of these as you wish and can change the start end dates there after as the times would remain the same.

    Automatically, you would need to use an indicator, there are a couple free publicly available that I will provide links for. Both will require some initial set-up and once set should work for you automatically.

    These indicators are publicly available on our NinjaTrader Ecosystem website:Here is a basic guideline of how to Import NinjaScripts.

    To import NinjaScripts you will need the original .zip file.

    To Import
    1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
    2. From the Control Center window select the menu Tools>Import>Ninjscript add-on..
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.

    Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

    Once installed, you may add the indicator to a chart by:
    • Right click your chart > indicators > Select the Indicator from the list on the left > New > OK
    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.

    Comment


      #3
      Excellent Paul,

      Repeater does exactly what I need. You guys should just make this a standard feature in NT.

      Excellent Customer Service and response time.

      Again,

      Thanks

      D

      Comment


        #4
        #dmking
        "Repeater does exactly what I need."
        I've used it for this purpose for quite some time. It has some 'foibles' due to how it is coded. Some are contained in the .cs file coder's notes. I'd suggest you check them out to see if they will apply to your use case
        If you are going to use it on a time-based Data Series chart and want to show Range (using Dynamic Range), be aware that your Session Start Time needs to be xx:xx:01 (second) otherwise in certain circumstances the Range High/Low may be incorrect. Took me many hours & contacting PaulH to reverse engineer what was happening. It's called 'expected behaviour' when it works as coded but not as a User would expect it to. May not apply to your use, but if it does hopefully save you some time & frustration.


        "You guys should just make this a standard feature in NT."
        See the following thread -

        https://ninjatrader.com/support/foru...sion-on-charts
        Even though a Ninja coded add-on, if you have problems with the stock platform you may be asked to remove ALL add-ons including Ninja ones for troubleshooting (hence desirability that what should be standard (imho, yours and many others') platform features should be in the stock platform)

        "Excellent Customer Service and response time." - ditto.

        Comment


          #5
          Hi the repeater indicator is not working properly anymore. It's incorrectly highlighting the most recent trading session (which I specified as 9:30 AM - 4:00 PM EST) and not highlighting afterhours. All the prior days are correct though with afterhours only highlighted. I included some screenshots and you can see what I'm talking about.
          Attached Files
          Last edited by jasonw; 05-14-2024, 06:28 PM.

          Comment


            #6
            #JasonW - try reconnecting your Connection, then Reload all historical, and/or reboot Ninja.
            If you want to dig deeper/confirm what you see is due to an absence of data, rather than a ‘Repeater problem’, go in to Historical data in Database management and look at the instrument/date/time missing on chart and I expect you’ll find it empty
            Hope this helps

            Comment


              #7
              Hello jasonw,

              Thank you for your post.

              I am not able to replicate this behavior (see attached screenshots). It is correctly highlighting the current session and prior sessions.

              What version of NinjaTrader are you using?

              As brucerobinson suggested, have you tried:
              • Restarting NinjaTrader
              • Reloading NinjaScript and Historical Data?
              Please let us know if you need further assistance.
              Attached Files

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              71 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              43 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              25 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              28 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              56 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X