Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, wandaluciaia, 1 invisible), 798 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
train does not work #476505
03/06/19 02:47
03/06/19 02:47
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
i copied script from training a strategy at zorro help. Script is below. I trained it with USDJPY after that i clicked result button then there was no result on graphic. Also in Log folder there was no result. How can i solve it?

// n-bar Moving Average system (just for example - don't trade this!)
function run()
{
set(PARAMETERS);
var TimePeriod = optimize(100,20,200,10);
vars Prices = series(price());
vars Averages = series(SMA(Prices,TimePeriod));
if(crossOver(Prices,Averages))
enterLong();
else if(crossUnder(Prices,Averages))
exitLong();
}

Re: train does not work [Re: tuuPaul] #476507
03/06/19 07:14
03/06/19 07:14
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Train has no result. It is for training. You must click Test for getting a result.

You should read the tutorial workshop 5.

Re: train does not work [Re: Spirit] #476510
03/06/19 10:31
03/06/19 10:31
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
no no you do not understand me. I can not get this attached graph. This graph is result of Train.

Attached Files train result.jpg
Re: train does not work [Re: Spirit] #476511
03/06/19 10:33
03/06/19 10:33
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
so how can i know what parameter is the best. I think best parameter will appear in result of train.

Re: train does not work [Re: tuuPaul] #476513
03/06/19 10:52
03/06/19 10:52
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
You have no LOGFILE set.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1