Backtesting Weekly Timeframes

Section for discussions related to indicators, use of indicators, and building of trading stategies using indicators.

Moderator: admin

Backtesting Weekly Timeframes

Postby mickatron » Sun May 24, 2015 11:53 pm

I'm really starting to enjoy backtesting and writing automated strategies, though I can't seem to run a test on any W1 timeframes. Both my custom Strategies and the ones which came with the product do not place any trades when backtesting W1.

I've been searching the forums and google expecting to find something, but so far have come up with nothing.

Is this usual behavior, or is there a fix or larger issue possibly at hand?
mickatron
 
Posts: 13
Joined: Sun Feb 15, 2015 10:46 am

Re: Backtesting Weekly Timeframes

Postby mickatron » Mon May 25, 2015 2:06 pm

I should mention I'm using Trading Station.

Any help is appreciated. Thanks.
mickatron
 
Posts: 13
Joined: Sun Feb 15, 2015 10:46 am

Re: Backtesting Weekly Timeframes

Postby Apprentice » Tue May 26, 2015 3:05 am

Can u provide strategy code for testing.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Backtesting Weekly Timeframes

Postby mickatron » Tue May 26, 2015 3:45 am

Hi Apprentice,
Thanks for the reply. I've actually worked this one out and was just coming back to post an answer.

The reason the W1 time frames were not back testing for me was due to using too high period values for average indicators being used in the strategy. As you can only test 23 months at a time in FXCM TS2 there was not enough data to start the strategy or at times even draw the indicator I was setting up.

Is there anyway to increase that limit? I know the computations would take much longer but I believe my PC could handle it and would like to be able to test across many more months if possible.
mickatron
 
Posts: 13
Joined: Sun Feb 15, 2015 10:46 am

Re: Backtesting Weekly Timeframes

Postby Apprentice » Thu May 28, 2015 5:04 am

Can you provide a functional code for reference.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Backtesting Weekly Timeframes

Postby mickatron » Wed Jun 10, 2015 2:32 am

There was no coding error, it was an input error. Any working strategy could reproduce this buy setting really high period values.

It maybe a question past this forum but does anyone know if you can increase the amount of months you can test on in TS2?
mickatron
 
Posts: 13
Joined: Sun Feb 15, 2015 10:46 am


Return to Discussions

Who is online

Users browsing this forum: No registered users and 4 guests