Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
No Trades when Backtesting Period is longer #483215
05/11/21 10:31
05/11/21 10:31
Joined: May 2021
Posts: 3
Zürich
T
TimmiHendrix Offline OP
Guest
TimmiHendrix  Offline OP
Guest
T

Joined: May 2021
Posts: 3
Zürich
Dear Community

First of all I wanted to thank the developers for this amazing tool and the community for being kind and interested.



So I wanted to extend my backtesting period from 1 to 3 (or more) years but when I do it returns no trades. Ergo, no backtesting results (FYI: I use several optimize functions, just in case this has anything to do with it).

First, I checked if I misspelled something in the code on accident but it doesn't seem so: When I change back the backtest period to one year it works again.

Second, I checked if I have the data needed to do the backtesting, and I do.

Third, I thought about being margin called, but there is no such message plotted and there is no equity curve at all anyways.

4th, I thought about that the algorithm is just not getting "good" signals so that it doesn't trigger any trades, but if this was the case, wouldn't there be an equity curve?

5th, I thought about exceeding the Zorro free version backtest period but since I'm going with 60min / 4h bars and since I used the same bar length for much longer backtesting periods before this doesn't make sense to me.
Edit: And even if I exceeded the Zorro free backtest period, wouldn't it then just not take all data but use only to the max amount?


I'm pretty sure that I'm missing something very crucial but at this point it just doesn't come to my mind. If there is anybody out there that has had the same problem, enlighten me!

Many thanks in advance

Tim


PS: As attachment a screenshot of the result plot (as one can see, it only shows the price curve)

Attached Files Capture.PNG
Last edited by TimmiHendrix; 05/11/21 10:35.
Re: No Trades when Backtesting Period is longer [Re: TimmiHendrix] #483218
05/11/21 12:19
05/11/21 12:19
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
If your script does not trade depending on the backtest period, something is wrong with the code, possibly with a static or global variable. For finding out, plot or print the signals and check which one has no valid value.

Re: No Trades when Backtesting Period is longer [Re: jcl] #483219
05/11/21 15:47
05/11/21 15:47
Joined: May 2021
Posts: 3
Zürich
T
TimmiHendrix Offline OP
Guest
TimmiHendrix  Offline OP
Guest
T

Joined: May 2021
Posts: 3
Zürich
Thank you very much Johann! Especially for the super fast reply!

Best

Tim

Last edited by TimmiHendrix; 05/11/21 15:48.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1