NexusFi: Find Your Edge


Home Menu

 





Session begins / ends in X minutes indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 5 posts (2 thanks)
    2. looks_two redratsal with 4 posts (2 thanks)
    3. looks_3 trendisyourfriend with 3 posts (0 thanks)
    4. looks_4 josh with 2 posts (0 thanks)
    1. trending_up 9,897 views
    2. thumb_up 4 thanks given
    3. group 6 followers
    1. forum 15 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Teton
Trading: ES, NQ, YM
Posts: 6,330 since Jan 2011
Thanks Given: 6,954
Thanks Received: 18,623

I may have charts from 8 markets open on my desktop, and given that the indices open at 9:30, crude at 9:00, gold at 8:20, corn at 10:30, and so on, I can get confused as to which charts are in the open outcry session, globex, which are closed, etc....

So, what I'd like to do is have an indicator sort of like the bar timer that will display in a corner of the chart window something like:

Crude Pit Session Open in 0:15:38

or, say, at 5:25 pm ET:

ES Daily Maintenance Shutdown in 0:05:00 ...

You get the idea. I will probably wind up doing this myself, but I wanted to check first and see if anyone knows of such an indicator that already exists.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
Kalshi Rockets to $22B, Passes Polymarket in Volume -- B …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

That's a really good idea. Have you thought about doing it in Excel or ask a programmer to do it in a separate but small program like a Window widget. This way you could let it float on your desktop. Just an idea.

Here are some financial widgets:
financial widget - download tag - page 1 - Softpedia


Reply With Quote
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


This is not difficult to code. Just take the bar timer and modify it to display the time until session begin. Maybe you want a female voice telling you "The session for gold futures will open in 7 minutes and 32 seconds" and the chart background turning red at the same time to warn you that the session open is imminent. Or would you prefer an alert to wake you up?

I have an old clock near my computer, on for the few markets I trade, I am perfectly aware of the market open time.


Reply With Quote
  #4 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090

Why don't you use the colortimeregions indicator . You can set up to 3 zones with audio alerts and visual displays on your charts, just set the begin and end zones n minutes before start end of session.


Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


redratsal View Post
Why don't you use the colortimeregions indicator . You can set up to 3 zones with visual display on your charts, just set the begin and end zones n minutes before start end of session.

That would be too easy. I could modify this indicator, to change colors prior to session begin as well, such as adding a red zone just prior to session begin.

https://nexusfi.com/free_downloads/ninjatrader-7/indicators/758-download.html

Here is a session timer to play with. You can set the lead time. When lead time is set to 5 minutes, it will turn red 5 minutes prior to the end of the session, which can be the RTH open.


Attached Thumbnails
Click image for larger version

Name:	SessionTimer.jpg
Views:	367
Size:	82.7 KB
ID:	38886  
Attached Files
Elite Membership required to download: SessionTimer.zip
Reply With Quote
Thanked by:
  #6 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


Fat Tails View Post
That would be too easy. I could modify this indicator, to change colors prior to session begin as well, such as adding a red zone just prior to session begin.

https://nexusfi.com/free_downloads/ninjatrader-7/indicators/758-download.html

Here is a session timer to play with. You can set the lead time. When lead time is set to 5 minutes, it will turn red 5 minutes prior to the end of the session, which can be the RTH open.

Thanks again FT but I would expected the timer to be customizable for multiple sessions like in CL and adjustable on the chart, if I use a Bar timer it overlays


Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

I was wondering how Ninja knows when a session begins or ends. I know it parses the Session template record for a given symbol but how does it address a particular session if for example there are three sessions defined in the template ?

Do you have commands like ...

if application.session.id = 3 then
or
debug.print application.session.count

Is it that simple, or do you need to define your own function to get this information ?

Thanks


Reply With Quote
  #8 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


trendisyourfriend View Post
I was wondering how Ninja knows when a session begins or ends. I know it parses the Session template record for a given symbol but how does it address a particular session if for example there are three sessions defined in the template ?

Do you have commands like ...

if application.session.id = 3 then
or
debug.print application.session.count

Is it that simple, or do you need to define your own function to get this information ?

Thanks

With NT5 you have Bars.Session.GetNextBeginEnd(...)

NinjaTrader Version 7


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #9 (permalink)
 
Jigsaw Trading's Avatar
 Jigsaw Trading 
Bangkok
 Vendor: www.jigsawtrading.com 
 
Experience: Intermediate
Platform: MultiCharts.NET, S5, Ninj
Broker: AMP, S5, IB
Trading: ES
Posts: 2,988 since Nov 2010
Thanks Given: 831
Thanks Received: 10,399

Download Chronos Clock - it'll do all the things you need.

Running an indicator in Ninja all the time you are logged in is a bit of a waste of resource IMO.

I have German, London & NY clocks up with alarms for the open of each market.


Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



redratsal View Post
Thanks again FT but I would expected the timer to be customizable for multiple sessions like in CL and adjustable on the chart, if I use a Bar timer it overlays

LOL. It automatically adjusts to the session templates, also to multiple sessions. If you use a bar timer, I could change the position on the chart, for example allow for 4 different positions to choose from.


Reply With Quote




Last Updated on January 20, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts