Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
Can you help answer these questions from other members on NexusFi?
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)
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
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)
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 ?