Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, monk12, TipmyPip, Quad, aliswee), 1,029 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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