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 805 views
    2. thumb_up 5 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

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

  #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?
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,434 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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 Twitter Reply With Quote
Thanked by:
  #3 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,357



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 Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts