how to get data from backtest last day before ExitOnClose ? - NinjaTrader | futures io social day trading
futures io futures trading


how to get data from backtest last day before ExitOnClose ?
Updated: Views / Replies:1,156 / 13
Created: by seanMen Attachments:0

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
 

how to get data from backtest last day before ExitOnClose ?

  #1 (permalink)
Trading Apprentice
tel aviv
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: stocks
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received

how to get data from backtest last day before ExitOnClose ?

When i use backtest i export all actions to a .csv file. my problem is with the last day of backtest which i don't get any prints on that day
Example, i'm running a backtest from 1/1/13 until 10/8/15 and printing every enter to OnBarUpdate including every buy or sell order according to my strategy.
on the last trading day (7/8/15 on this case) i don't see any OnBarUpdate prints. just ExitOnClose price which dosent fit the real close price of that date.
I tried to prints from the function OnTermination but still, when printing the date i get 6/8/15.
does anyone have any idea how to get data from the last day on backtest (like close price)
thank you

Reply With Quote
 
  #2 (permalink)
Market Wizard
Germany
 
Futures Experience: Intermediate
Platform: Other
Favorite Futures: ES, YM, 6E
 
Posts: 2,641 since Feb 2013
Thanks: 4,900 given, 6,429 received
Forum Reputation: Legendary

A frequent error source is a wrong session template.
Did you already make sure that your session template is correct?

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
tel aviv
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: stocks
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received


Sorry i don't think that i understand your meaning
which session template did you mean?
(if you meant, using the right strategy then yes, i did check that the right one is running)

Reply With Quote
 
  #4 (permalink)
Market Wizard
Germany
 
Futures Experience: Intermediate
Platform: Other
Favorite Futures: ES, YM, 6E
 
Posts: 2,641 since Feb 2013
Thanks: 4,900 given, 6,429 received
Forum Reputation: Legendary


seanMen View Post
Sorry i don't think that i understand your meaning
which session template did you mean?
(if you meant, using the right strategy then yes, i did check that the right one is running)

NT instruments use session templates.
Data-Series-Window

If you don't use the original instrument setting (e.g. because of yourself trading from a different time zone), you will have to adjust the settings:
Creating-A-Session-Template

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
tel aviv
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: stocks
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received

I'll give it a try
Thank you for your resopond

Reply With Quote
The following user says Thank You to seanMen for this post:
 
  #6 (permalink)
Trading Apprentice
tel aviv
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: stocks
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received

Hi again
I tried to change the session , build a new template and saved but the ninja doesn't let me work with that template for some reason, anyway i'm downloading data from the data manager before backtesting so i don't think that this is the problem.
can you think of any other way that i'll be able to print the close price of the last backtesting day? (meaning, the day of ExitOn Close)

Reply With Quote
 
  #7 (permalink)
Market Wizard
Germany
 
Futures Experience: Intermediate
Platform: Other
Favorite Futures: ES, YM, 6E
 
Posts: 2,641 since Feb 2013
Thanks: 4,900 given, 6,429 received
Forum Reputation: Legendary


seanMen View Post
Hi again
I tried to change the session , build a new template and saved but the ninja doesn't let me work with that template for some reason, anyway i'm downloading data from the data manager before backtesting so i don't think that this is the problem.
can you think of any other way that i'll be able to print the close price of the last backtesting day? (meaning, the day of ExitOn Close)

Strange.
Data manager aside, which real-time data do you use or do you only have free EOD data?

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
tel aviv
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: stocks
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received

Im downloading free EOD data from yahoo finance via the Historical data manager

Reply With Quote
 
  #9 (permalink)
Market Wizard
Germany
 
Futures Experience: Intermediate
Platform: Other
Favorite Futures: ES, YM, 6E
 
Posts: 2,641 since Feb 2013
Thanks: 4,900 given, 6,429 received
Forum Reputation: Legendary

Ok. Assumed that your strategy code works correctly, your problem presumably results from your data.
That can also cause the session template errors.

Are you just playing a little with the NT functions to learn about the program or do you already plan to develop anything "real"?

Reply With Quote
 
  #10 (permalink)
Trading Apprentice
tel aviv
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: stocks
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received


i ran real before but found too many bugs (for my strategy) within the NT therefore i started writing an external code to implement my strategy but still need to use the NT backtest
can you print the last day close price (same day as exitonclose) when running backtest from your NT ?

Reply With Quote

Reply



futures io > > > > how to get data from backtest last day before ExitOnClose ?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible a backtest performance data indicator on the chart? Astrogirl NinjaTrader 3 August 5th, 2015 10:17 AM
Volume of download data/day? rsilk Reviews of Brokers and Data Feeds 2 November 18th, 2013 03:31 PM
Renko/manual backtest/hybrid backtest BrianH NinjaTrader 0 November 4th, 2013 02:07 PM
Backtest Futures data contract merging Seahn Elite Automated Trading 2 January 22nd, 2013 10:27 PM
Data to backtest for year 2008 and 2009 for CL, 6E, ES emini_Holy_Grail Traders Hideout 5 September 19th, 2011 10:12 PM


All times are GMT -4. The time now is 11: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-12 in 0.12 seconds with 39 queries on phoenix via your IP 54.234.255.29