Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mulitple assets to test in a strategy #472352
04/22/18 21:05
04/22/18 21:05
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37
Hello,

I have an strategy and I would like test it with some assets.

Any idea ? is it psosible ?

I wan't select every time in Zorro the asset, can do it automatic?
I know that i can choice asset with zorro but i want to test in some assets..

Thanks in advance

Re: Mulitple assets to test in a strategy [Re: sdelatorre] #472355
04/23/18 02:04
04/23/18 02:04
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline
Member
kujo  Offline
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Hi, use asset() function to select an asset in the script. See examples here:
http://zorro-trader.com/manual/en/asset.htm
http://zorro-trader.com/manual/en/tutorial_kelly.htm

There is a good Zorro tutorial in the manual. I'd recommend to start with it.

Re: Mulitple assets to test in a strategy [Re: kujo] #472360
04/23/18 08:23
04/23/18 08:23
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37

Thanks,I saw it but I want for every asset shows profits and not all in general.

Re: Mulitple assets to test in a strategy [Re: sdelatorre] #472364
04/23/18 09:44
04/23/18 09:44
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
In the performance report you can search for the "Wgt%" field, that's the profit contribution of every asset to the whole portfolio.

http://www.zorro-trader.com/manual/en/performance.htm

If you want to plot individual equity curves, apply to every asset the code showed here in "Plot equity curves of single assets in a multi-asset strategy".

http://www.zorro-trader.com/manual/en/tips.htm

Re: Mulitple assets to test in a strategy [Re: Brax] #473369
07/01/18 19:34
07/01/18 19:34
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37

Thanks brax but the code doesn't work correctly because only plot when the select asset is the same that the asset select in the box.


Any idea ?

Thanks in advance

Re: Mulitple assets to test in a strategy [Re: sdelatorre] #473370
07/01/18 19:40
07/01/18 19:40
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Did you try:

Code:
setf(PlotMode,PL_ALL);


Re: Mulitple assets to test in a strategy [Re: Sphin] #473436
07/05/18 20:34
07/05/18 20:34
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37
Thanks, with setf(plotMode,PL_ALL) and the trick of plot equity is good but the lines are discontinuous.

There is strange because :

while(Name = (loop(Assets)))
{
asset(Name);
plot(Name,priceClose(),NEW,CYAN);

--> The lines are discontinuos too but if I plot at the end of my code there is no problema with:

asset("EUR/USD);
plot("EUR/USD",priceClose(),NEW,CYAN)

--> The line is correct, No problem.

Last edited by sdelatorre; 07/05/18 20:43.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1