Session templates in NT7 - NinjaTrader Programming | futures io social day trading
futures io futures trading


Session templates in NT7
Updated: Views / Replies:1,789 / 6
Created: by ValutaTrader Attachments:1

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
 
Thread Tools Search this Thread
 

Session templates in NT7

  #1 (permalink)
Elite Member
Oslo,Norway
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
ValutaTrader's Avatar
 
Posts: 66 since Apr 2011
Thanks: 4 given, 50 received

Session templates in NT7

From what I have read, NT should handle daylight saving time with respect to templates. I live in GMT+1, and my PC is set up (Windows 7) to adjust for DST. We dont actualy shift until the last weekend of March, so we have not yet entered DST.
I am running with template US Equities RTH, which should mean 9.30-16.00 or 15.30 -22.00 here in central Europe. However, from this week, the template has shifted to 14.30-21.00 (or 8.30-15.00 NY time) , meaning that it starts one hour earlier than what I would expect. Anyone else experienced similar issues in NT7? My computer has not entered DST and displays the expected local time. The template says it should run between 9.30-16.00 in UTC-5. I have created a copy with settings 10.30-17.00 (UTC-5) today, and that corresponds to actual opening times of US Equities.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (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,602 received
Forum Reputation: Legendary



ValutaTrader View Post
From what I have read, NT should handle daylight saving time with respect to templates. I live in GMT+1, and my PC is set up (Windows 7) to adjust for DST. We dont actualy shift until the last weekend of March, so we have not yet entered DST.
I am running with template US Equities RTH, which should mean 9.30-16.00 or 15.30 -22.00 here in central Europe. However, from this week, the template has shifted to 14.30-21.00 (or 8.30-15.00 NY time) , meaning that it starts one hour earlier than what I would expect. Anyone else experienced similar issues in NT7? My computer has not entered DST and displays the expected local time. The template says it should run between 9.30-16.00 in UTC-5. I have created a copy with settings 10.30-17.00 (UTC-5) today, and that corresponds to actual opening times of US Equities.

It seems that NinjaTrader is cleverer than you.

The US already has entered DST, and shifting the session times to 14:30 - 21:00 is absolutely correct, as this corresponds to 9:30 - 16:00 EST (New York) time.

The only issue is that you did not realize that DST starts two weeks earlier in the US than in Europe.

When summertime starts in Europe in 2 weeks, NinjaTrader will shift the US session back to 15:30 - 22:00.


Last edited by Fat Tails; March 14th, 2012 at 07:33 AM.
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Oslo,Norway
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
ValutaTrader's Avatar
 
Posts: 66 since Apr 2011
Thanks: 4 given, 50 received

ah, of course

Did not look at the equity markets themselves other than the data series from the 24h future market, so I did not see that US Equities was actually closed at the same time the template finished.

Then, everything is great actually, and I would expect NT to adjust again during the last weekend of March when Europe changes.

Reply With Quote
 
  #5 (permalink)
Elite Member
Oslo,Norway
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
ValutaTrader's Avatar
 
Posts: 66 since Apr 2011
Thanks: 4 given, 50 received

I actually do have a second/followup question to this.

I am testing on a simulation account, with a template now that runs only between 9.30-11 US Equity time. That period seems to give good results on RangeNoGap(4) - trend following, since you get longer trends within this period relative to choppy changes.

I have ExitOnClose, and today (which may have to do with me reloading my templates) my strategies did not close my positions at 11 (end of template). Is this expected behavior? (in other words, should I flatten positions in my scripts?) I closed down everything, and reloaded my workspace and now my strategies display in yellow since both CL and GC futures come up with open positions at the end of the session (11 AM) when preloading historical calculations. I would perhaps thought that the positions would be closed at the end of the session, and strategies being green from now until Tomorrow at 9.30 when the template continues?

Attached is a screen dump of how my window looks at this point in time. Session ended at 16 GMT+1 as expected, but CL position not closed (though I have specified ExitOnClose and 120 seconds time buffer for closing).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Last edited by ValutaTrader; March 14th, 2012 at 02:23 PM. Reason: Update
Reply With Quote
 
  #6 (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,602 received
Forum Reputation: Legendary


ValutaTrader View Post
I actually do have a second/followup question to this.

I am testing on a simulation account, with a template now that runs only between 9.30-11 US Equity time. That period seems to give good results on RangeNoGap(4) - trend following, since you get longer trends within this period relative to choppy changes.

I have ExitOnClose, and today (which may have to do with me reloading my templates) my strategies did not close my positions at 11 (end of template). Is this expected behavior? (in other words, should I flatten positions in my scripts?) I closed down everything, and reloaded my workspace and now my strategies display in yellow since both CL and GC futures come up with open positions at the end of the session (11 AM) when preloading historical calculations. I would perhaps thought that the positions would be closed at the end of the session, and strategies being green from now until Tomorrow at 9.30 when the template continues?

Attached is a screen dump of how my window looks at this point in time. Session ended at 16 GMT+1 as expected, but CL position not closed (though I have specified ExitOnClose and 120 seconds time buffer for closing).


Did you use the ExitOnClose command in the Initialize() section?

Reply With Quote
 
  #7 (permalink)
Elite Member
Oslo,Norway
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
ValutaTrader's Avatar
 
Posts: 66 since Apr 2011
Thanks: 4 given, 50 received

Yes, I do actually

EntriesPerDirection = 1;
EntryHandling = EntryHandling.AllEntries;
CalculateOnBarClose = true;
IncludeCommission = true;
Slippage = 1;
ExitOnClose = true;
// RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;
// IgnoreOverFill = true;
SetStopLoss("", CalculationMode.Ticks, sl, false);
SetProfitTarget("", CalculationMode.Ticks, tp);

Does not seem to make any difference though. However, when I investigate the logs from when I was running two instances of the strategy, it does initiate Exit On Close, so the events work. What I am not sure of however, is whether it only tries to delete the SL and TP orders associated with the positions (1 lot on each instrument/strategy) or if it tries to flatten the positions as well. In the config of NT it only says "Cancel Entry.. " and "Cancel Exit orders", and nothing about current positions. I mean, I thought it did both. It would make no sense to remove an SL but keep the position (or vice versa), leaving an unprotected market position. I believe there is an exit/uninitialize event or something that I could use to test and flatten the positions.

14.03.2012 15:59:30|1|128|Exit on close handling for strategy 'VTFlowTrader' started.
14.03.2012 15:59:30|1|128|Exit on close handling for strategy 'VTFlowTrader' started.
14.03.2012 15:59:30|1|32|Order='ad99c260b3bb404c96d2ba7b2074095a/Sim101' Name='Stop loss' New state=PendingCancel Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=1662,7 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='cf28b5d83f7b4b5d800a8f98457d1763/Sim101' Name='Profit target' New state=PendingCancel Instrument='GC 04-12' Action=BuyToCover Limit price=1617,7 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='937773f619004f1b863392f92c6b327c/Sim101' Name='Exit on close' New state=PendingSubmit Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|128|Exit on close handling for strategy 'VTFlowTrader' started.
14.03.2012 15:59:30|1|32|Order='7de58f495ba54fc08d131b766132d514/Sim101' Name='Stop loss' New state=PendingCancel Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=108,1 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='d88028f9b97e415aa24516e2cb508225/Sim101' Name='Profit target' New state=PendingCancel Instrument='CL 04-12' Action=BuyToCover Limit price=103,6 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='adcf33423bc7473a8a61fb45a95cb005/Sim101' Name='Exit on close' New state=PendingSubmit Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='937773f619004f1b863392f92c6b327c/Sim101' Name='Exit on close' New state=Accepted Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='937773f619004f1b863392f92c6b327c/Sim101' Name='Exit on close' New state=Working Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='937773f619004f1b863392f92c6b327c/Sim101' Name='Exit on close' New state=Filled Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=1647,6 Error=NoError Native error=''
14.03.2012 15:59:30|1|16|Execution='dfa808194d02428e9d15369c7c60d677' Instrument='GC 04-12' Account='Sim101' Exchange=Default Price=1647,6 Quantity=1 Market position=Long Operation=Insert Order='937773f619004f1b863392f92c6b327c' Time='14.03.2012 15:59:30'
14.03.2012 15:59:30|1|64|Instrument='GC 04-12' Account='Sim101' Avg price=1647,6 Quantity=0 Market position=Short Operation=Remove Currency=Unknown
14.03.2012 15:59:30|1|32|Order='cf28b5d83f7b4b5d800a8f98457d1763/Sim101' Name='Profit target' New state=Cancelled Instrument='GC 04-12' Action=BuyToCover Limit price=1617,7 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='ad99c260b3bb404c96d2ba7b2074095a/Sim101' Name='Stop loss' New state=Cancelled Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=1662,7 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='adcf33423bc7473a8a61fb45a95cb005/Sim101' Name='Exit on close' New state=Accepted Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='adcf33423bc7473a8a61fb45a95cb005/Sim101' Name='Exit on close' New state=Working Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='adcf33423bc7473a8a61fb45a95cb005/Sim101' Name='Exit on close' New state=Filled Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=106,39 Error=NoError Native error=''
14.03.2012 15:59:30|1|16|Execution='b7c5e16ee8db44fd8d1597087aaf0063' Instrument='CL 04-12' Account='Sim101' Exchange=Default Price=106,39 Quantity=1 Market position=Long Operation=Insert Order='adcf33423bc7473a8a61fb45a95cb005' Time='14.03.2012 15:59:30'
14.03.2012 15:59:30|1|64|Instrument='CL 04-12' Account='Sim101' Avg price=106,39 Quantity=0 Market position=Short Operation=Remove Currency=Unknown
14.03.2012 15:59:30|1|32|Order='d88028f9b97e415aa24516e2cb508225/Sim101' Name='Profit target' New state=Cancelled Instrument='CL 04-12' Action=BuyToCover Limit price=103,6 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:30|1|32|Order='7de58f495ba54fc08d131b766132d514/Sim101' Name='Stop loss' New state=Cancelled Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=108,1 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='fa7b7ee058bd4fb68b73c93d411a0be7/Sim101' Name='Short' New state=PendingSubmit Instrument='GC 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='fa7b7ee058bd4fb68b73c93d411a0be7/Sim101' Name='Short' New state=Accepted Instrument='GC 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='fa7b7ee058bd4fb68b73c93d411a0be7/Sim101' Name='Short' New state=Working Instrument='GC 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='fa7b7ee058bd4fb68b73c93d411a0be7/Sim101' Name='Short' New state=Filled Instrument='GC 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=1647,5 Error=NoError Native error=''
14.03.2012 15:59:35|1|16|Execution='7dd3be0205fe4fa7a64b7da9bcef5255' Instrument='GC 04-12' Account='Sim101' Exchange=Default Price=1647,5 Quantity=1 Market position=Short Operation=Insert Order='fa7b7ee058bd4fb68b73c93d411a0be7' Time='14.03.2012 15:59:35'
14.03.2012 15:59:35|1|64|Instrument='GC 04-12' Account='Sim101' Avg price=1647,5 Quantity=1 Market position=Short Operation=Insert Currency=Unknown
14.03.2012 15:59:35|1|32|Order='8e9e55fff17b45aab19bb511e1acb3b6/Sim101' Name='Stop loss' New state=PendingSubmit Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=1662,5 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='39c519654599404bb2b678932e1a65f7/Sim101' Name='Profit target' New state=PendingSubmit Instrument='GC 04-12' Action=BuyToCover Limit price=1617,5 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='8e9e55fff17b45aab19bb511e1acb3b6/Sim101' Name='Stop loss' New state=Accepted Instrument='GC 04-12' Action=BuyToCover Limit price=0 Stop price=1662,5 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='39c519654599404bb2b678932e1a65f7/Sim101' Name='Profit target' New state=Accepted Instrument='GC 04-12' Action=BuyToCover Limit price=1617,5 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:35|1|32|Order='39c519654599404bb2b678932e1a65f7/Sim101' Name='Profit target' New state=Working Instrument='GC 04-12' Action=BuyToCover Limit price=1617,5 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='e182b2cf41e74b27a5ab41e78e0c0d8a/Sim101' Name='Short' New state=PendingSubmit Instrument='CL 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='e182b2cf41e74b27a5ab41e78e0c0d8a/Sim101' Name='Short' New state=Accepted Instrument='CL 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='e182b2cf41e74b27a5ab41e78e0c0d8a/Sim101' Name='Short' New state=Working Instrument='CL 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='e182b2cf41e74b27a5ab41e78e0c0d8a/Sim101' Name='Short' New state=Filled Instrument='CL 04-12' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Type=Market Filled=1 Fill price=106,35 Error=NoError Native error=''
14.03.2012 15:59:38|1|16|Execution='2fa240716f4e4fde9fb29a594776f67d' Instrument='CL 04-12' Account='Sim101' Exchange=Default Price=106,35 Quantity=1 Market position=Short Operation=Insert Order='e182b2cf41e74b27a5ab41e78e0c0d8a' Time='14.03.2012 15:59:38'
14.03.2012 15:59:38|1|64|Instrument='CL 04-12' Account='Sim101' Avg price=106,35 Quantity=1 Market position=Short Operation=Insert Currency=Unknown
14.03.2012 15:59:38|1|32|Order='21249fc81ba74cb08fe45ff438e792e6/Sim101' Name='Stop loss' New state=PendingSubmit Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=107,85 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='27796f2cd14149dba6078b6fa45a27f2/Sim101' Name='Profit target' New state=PendingSubmit Instrument='CL 04-12' Action=BuyToCover Limit price=103,35 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='21249fc81ba74cb08fe45ff438e792e6/Sim101' Name='Stop loss' New state=Accepted Instrument='CL 04-12' Action=BuyToCover Limit price=0 Stop price=107,85 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='27796f2cd14149dba6078b6fa45a27f2/Sim101' Name='Profit target' New state=Accepted Instrument='CL 04-12' Action=BuyToCover Limit price=103,35 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''
14.03.2012 15:59:38|1|32|Order='27796f2cd14149dba6078b6fa45a27f2/Sim101' Name='Profit target' New state=Working Instrument='CL 04-12' Action=BuyToCover Limit price=103,35 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error=''

Reply With Quote

Reply



futures io > > > > > Session templates in NT7

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
Market Analyzer Templates aligator The Elite Circle 14 April 24th, 2016 02:43 PM
Correct Session Template for 6B in NT7 skyfly NinjaTrader 6 May 24th, 2011 04:20 PM
Does anyone now how to modify Session Time in NT7? benharrell Traders Hideout 4 July 15th, 2010 08:25 PM
No templates in NT7 ?! gregid NinjaTrader 4 November 18th, 2009 09:29 AM


All times are GMT -4. The time now is 03:39 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-17 in 0.15 seconds with 20 queries on phoenix via your IP 107.20.115.174