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



how to get data from backtest last day before ExitOnClose ?


Discussion in NinjaTrader

Updated by shodson
    1. trending_up 1,809 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 13 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

how to get data from backtest last day before ExitOnClose ?

(login for full post details)
  #11 (permalink)
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
 
Posts: 2,666 since Feb 2013
Thanks: 5,097 given, 6,547 received

Knowing many of the pitfalls, I for one switched to self-coded tests about 2 years ago.
Same with many of the more active traders here (some also use R, MATLAB or other additional libraries).

Just pushing my button to find out if I have the latest close in backtests (answer: yes, I do) won't help you.
Exit on close has some known issues since data sources / vendors treat settlements and last traded prices differently, which can cause misleading backtesting results.

So my advice would be: Use a regular real-time data vendor, configure correct session settings etc., then do your development and backtests.

Considering the development and backtesting methodology, I'd recommend @kevinkdog 's series of webinars. They will save you a ton of time (and/or money).

https://futures.io/webinars/dec6_2012/kevin_davey_algorithmic_trading/

https://futures.io/webinars/dec4_2013/algorithmic_trading_challenge_kevin_davey/
https://www.youtube.com/watch?v=3Cnju_q1MWU

Reply With Quote
The following user says Thank You to choke35 for this post:

Can you help answer these questions
from other members on futures io?
Horizontal Line Indicator
Platforms and Indicators
How to place NT8 indicator output into a grid, under each bar?
NinjaTrader
Times and Sales more data to be displayed
TradeStation
is there an easy way to obtain by code the price variation percentual
MultiCharts
DLL with webrequest function for MC
MultiCharts
 
 
(login for full post details)
  #12 (permalink)
tel aviv
 
 
Posts: 7 since Aug 2015
Thanks: 0 given, 1 received

Hi again
Thank you for your advice , i will give it a try
I manage to solve that problem by setting CalculateOnBarClose to be false.
That way i'm able to get all last backtesting day data

appreciate your help
thank you

Reply With Quote
 
(login for full post details)
  #13 (permalink)
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
 
Posts: 2,666 since Feb 2013
Thanks: 5,097 given, 6,547 received



seanMen View Post
Hi again
Thank you for your advice , i will give it a try
I manage to solve that problem by setting CalculateOnBarClose to be false.
That way i'm able to get all last backtesting day data

appreciate your help
thank you

That error cause is nearly as basic as the session template
A caveat: Your decision comes with a price: Toggling CalculateOnBarClose to false with real-time data will result in interpreting all last prices as a "current close".
So be aware that in real trading on real-time data you will have every last tick as a (but not "the") close. Without correcting this effect with suitable time checks etc.
in your program, your testing results will not be valid for real-time use.

---

Wise decision to give methodology a try. Many beginners just get absorbed by program, backtesting, and (even more fallacious: ) optimization functions.
Then after a while they believe to have a strategy that's almost the egg of Columbus, but in fact it's only the result of overfitting past data.
Like in trading starting with methodology is important because you avoid some bad habits from the start.

Good luck!

Reply With Quote
 
(login for full post details)
  #14 (permalink)
Market Wizard
OC, California, USA
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Trading: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,941 since Jun 2009
Thanks: 510 given, 3,588 received


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

Why don't you just use the Kinetick free end-of-day feed?

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > how to get data from backtest last day before ExitOnClose ?


August 13, 2015


Upcoming Webinars and Events
     



Copyright © 2020 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