NexusFi: Find Your Edge


Home Menu

 





Backetest is working only from the past 5 days and misteriously dosn't beforeThatDate


Discussion in MultiCharts

Updated
    1. trending_up 1,345 views
    2. thumb_up 5 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
Dvdkite
Trieste Italy
 
Posts: 162 since Feb 2018
Thanks Given: 131
Thanks Received: 25

Hello Everyone,

I have a very simply strategy ( it's just at the first step of development ) that buy after a green candle with a body of minimum 15 pts and sell after a red candle of 15 pts..... TArget and stop are fixed... It's that simple .

So I have a Chart with the 10 minute DAX future and when I run the backtest it is only doing backtest starting from the 7th of october (today: now is the 11th) so I can only see the last 5 days... The chart settings date start from the 6 of september.....
So anyone has ever experienced an issue like this? There's not date indication or limitations in the code...

If I run the strategy with 1 minute chart it is running from the 10 of september... so almost from the beginning of the chart... but with 10 minutes it is only calculating the last 5 days...

Any Ideas??? Any help is appreciated .... I already checked all the possible settings with not luck...


BTW: Max Bars That the study can reference is 2500... it's not the problem here.
Thanks



David


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
White House Drops First Alien Files Today -- Market Says …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Dvdkite,

can you elaborate why Max Bars back is not the problem here? How many bars do you have on the chart in total and was is the bar number of the first signal?
In fact with 10 minute bars for the Dax and starting on the 6th of September it's not unlikely that the high Max bars setting you are using is causing the trades to appear only on the last 5 days as your settings will skip the first 2500 bars.

Regards,

ABCTG


Dvdkite View Post
Hello Everyone,

I have a very simply strategy ( it's just at the first step of development ) that buy after a green candle with a body of minimum 15 pts and sell after a red candle of 15 pts..... TArget and stop are fixed... It's that simple .

So I have a Chart with the 10 minute DAX future and when I run the backtest it is only doing backtest starting from the 7th of october (today: now is the 11th) so I can only see the last 5 days... The chart settings date start from the 6 of september.....
So anyone has ever experienced an issue like this? There's not date indication or limitations in the code...

If I run the strategy with 1 minute chart it is running from the 10 of september... so almost from the beginning of the chart... but with 10 minutes it is only calculating the last 5 days...

Any Ideas??? Any help is appreciated .... I already checked all the possible settings with not luck...


BTW: Max Bars That the study can reference is 2500... it's not the problem here.
Thanks



David



Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,738 since Jul 2012
Thanks Given: 1,918
Thanks Received: 7,485



Dvdkite View Post
Hello Everyone,


BTW: Max Bars That the study can reference is 2500... it's not the problem here.
Thanks



David

Max Bars back is ABSOLUTELY the problem here. Max Bars Back is supposed to be as SMALL as possible.

By setting it to 2500, you are telling the backtest to wait 2500 bars before taking any trades.

I am certain that is not what you want.

You want Max Bars Back as small as your strategy can tolerate.


Kevin

This is a very common issue, from e-mails I get from other traders. When people see "Max bars" they think the number should be big. Like I told someone yesterday:

"The number is really confusing, you want it as SMALL as possible. If you had a 49 period moving average, then Max number of bars = 49. If it was 14 period ma, then MAX = 14.


So you really want MAX number... to be the minimum possible!

Tradestation worded it completely wrong. It should be “minimum number of bars needed to initialize calculations”


Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
Dvdkite
Trieste Italy
 
Posts: 162 since Feb 2018
Thanks Given: 131
Thanks Received: 25

Thanks to ABCTG and KevingDog,

I just realized now that I didn't replied here but only at the official MC forum.
You were right, that was the problem. I lowered the number and it worked.

Thanks again.

David


Reply With Quote
Thanked by:




Last Updated on November 22, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts