Session begins / ends in X minutes indicator - NinjaTrader | futures io social day trading
futures io futures trading


Session begins / ends in X minutes indicator
Updated: Views / Replies:3,557 / 15
Created: by josh Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

Session begins / ends in X minutes indicator

  #11 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,068 received


Fat Tails View Post
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.

Thanks I am fine you did more than needed

Reply With Quote
The following user says Thank You to redratsal for this post:
 
  #12 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


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

@ redratsal is correct, you can access the session end that belongs to the current bar via the NinjaScript method GetNextBeginEnd(). This methods basically uses the time stamp of the current bar and then selects the approriate session from the selected session template and returns begin and end time of that session.

There is nothing like a Session ID. The whole concept of sessions can still be improved by specifying which is the first session of the trading day. There is no such field that can be entered into the master data of NinjaTrader, I have seen that for other software packages though.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #13 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker/Data: Stage 5 trading/AMP/CQG
Favorite Futures: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 3,697 since Oct 2009
Thanks: 3,041 given, 4,496 received



Fat Tails View Post
...There is nothing like a Session ID. The whole concept of sessions can still be improved by specifying which is the first session of the trading day. There is no such field that can be entered into the master data of NinjaTrader, I have seen that for other software packages though.

When i was programming i was used to the concept of collection or list that Microsoft uses extensively in all his software. I always thought it was a good idea as it facilitates the coding of an application.

For example, you can think about indicators on a chart as a collection, Bars on a chart as another collection, Session might be another collection which might contain x item(s) etc. When you think in terms of list or collection then you can think about a common way to access any particular item.

Ex.:

---
Ninja.Charts.Count
Ninja.Sessions.Count
Ninja.Bars.Count

Ninja.Charts[2].indicator[3]
Ninja.Sessions[2].item[3]
Ninja.Bars[101].High

Etc.


To achieve this level of sophistication, you need to define an object model which makes sense. I have not been able to find one public object model for Ninja that is available for viewing anywhere.

Reply With Quote
 
  #14 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


trendisyourfriend View Post
When i was programming i was used to the concept of collection or list that Microsoft uses extensively in all his software. I always thought it was a good idea as it facilitates the coding of an application.

For example, you can think about indicators on a chart as a collection, Bars on a chart as another collection, Session might be another collection which might contain x item(s) etc. When you think in terms of list or collection then you can think about a common way to access any particular item.

Ex.:

---
Ninja.Charts.Count
Ninja.Sessions.Count
Ninja.Bars.Count

Ninja.Charts[2].indicator[3]
Ninja.Sessions[2].item[3]
Ninja.Bars[101].High

Etc.


To achieve this level of sophistication, you need to define an object model which makes sense. I have not been able to find one public object model for Ninja that is available for viewing anywhere.


You should better stick to NinjaScript and not try something else, otherwise your charts may slowly dissipate.

Reply With Quote
 
  #15 (permalink)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received

Thanks for the good suggestions guys.

I suppose I could define sessions and go this route, but it could be simpler (possibly). For ES for example, I'd like to know what the countdown timer is for--I'd like to be able maybe put in a text file the strings for each instrument like:

5:30 | Maintenance period begins in ...
6:00 | Market reopens from maintenance period in ...

and so on...

Reply With Quote
 
  #16 (permalink)
Elite Member
Las Vegas, NV
 
Futures Experience: None
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: CL
 
Posts: 102 since Jun 2010
Thanks: 115 given, 103 received

Josh, I was looking around for the same countdown that you wanted, and came across this:
View Download Details - Big Mike's Trading Forum

I think this is what you want, but it would be nice to have these times user defined so that each user can choose the times for a particular instrument, such as grains etc.....

Could someone tweak the code to allow user defined sessions?

Thanks in advance!
-M

Reply With Quote

Reply



futures io > > > > Session begins / ends in X minutes indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
VWAP SESSION NT indicator problem babypowder NinjaTrader 9 March 31st, 2014 04:43 PM
BT OPENING RANGE INDICATOR - without vertical lines at session changes Todd NinjaTrader Programming 108 December 7th, 2013 11:02 PM
1st 90 minutes trading NQ futures (day session)... researcher247 The Elite Circle 10 March 5th, 2013 11:15 AM
How to know when a retracement ends? ikeaboy Traders Hideout 9 August 25th, 2010 07:06 AM
Another Market Worry: What Happens When Stimulus Ends? Quick Summary News and Current Events 3 June 13th, 2010 07:58 PM


All times are GMT -4. The time now is 10:49 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-14 in 0.11 seconds with 20 queries on phoenix via your IP 54.90.207.75