Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,175 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Train and Test buttons seems to do the same thing #488697
04/14/25 00:50
04/14/25 00:50
Joined: Apr 2025
Posts: 2
C
chitown2016 Offline OP
Guest
chitown2016  Offline OP
Guest
C

Joined: Apr 2025
Posts: 2
I have a simple code:

function run()
{
set(LOGFILE);
set(PARAMETERS);
BarPeriod = 60;
LookBack = 200;
asset("EUR/USD");
vars Prices = series(price());

var ShortPeriod = optimize(25,20,35,5);
var LongPeriod = optimize(100,90,110,5);

vars SMAShort = series(SMA(Prices,ShortPeriod));
vars SMALong = series(SMA(Prices,LongPeriod));

if (crossOver(SMAShort,SMALong)) enterLong();
if (crossUnder(SMAShort,SMALong)) enterShort();

}

When I click on Train button, it optimizes and saves parameters. However when I click on the Test button it does the same exact thing. And afterwards when I click on the Result I don't get any price chart with trades. Perhaps I am missing something with the new version? I have zorro 2.64.

Re: Train and Test buttons seems to do the same thing [Re: chitown2016] #488700
04/18/25 16:15
04/18/25 16:15
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria

Re: Train and Test buttons seems to do the same thing [Re: Petra] #488703
04/20/25 19:25
04/20/25 19:25
Joined: Apr 2025
Posts: 2
C
chitown2016 Offline OP
Guest
chitown2016  Offline OP
Guest
C

Joined: Apr 2025
Posts: 2
Thank you, the new version works fine!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1