Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 21,112 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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