Gamestudio Links
Zorro Links
Newest Posts
IBKR datasave problem
by NewbieZorro. 06/11/25 15:11
Marking Exit trades
by jcl. 06/11/25 14:02
SGT_FW
by Aku_Aku. 06/02/25 17:54
The Perfect Adventure Game
by tian. 05/27/25 04:32
ADX values
by Yogpot. 05/25/25 15:11
Transfer of Lots between Algos?
by Jack_Zodiac. 05/25/25 09:30
AUM Magazine
Latest Screens
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Zeal-X2
Who's Online Now
0 registered members (), 357 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
WardyJoubertIII, NewbieZorro, Squarei, tian, Yogpot
19139 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