Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Trading list of asset pairs #478802
12/21/19 08:22
12/21/19 08:22
Joined: Dec 2019
Posts: 5
D
deepscreener Offline OP
Newbie
deepscreener  Offline OP
Newbie
D

Joined: Dec 2019
Posts: 5
I would like to implement a pairs trading using a list of pairs. I could not find a good way how to loop over the list of pairs. Is it possible to use multiple assetlists - an assetlist per pair? Or should I just hardcode the asset pairs in arrays and iterate over those arrays? What would be the best way to achive my goal in Zorro?

Re: Trading list of asset pairs [Re: deepscreener] #478804
12/21/19 12:11
12/21/19 12:11
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
Check out this article on RW, there's an example implementation for pairs trading in Zorro

https://robotwealth.com/pairs-trading-zorro/

Re: Trading list of asset pairs [Re: Dalla] #478805
12/21/19 14:33
12/21/19 14:33
Joined: Dec 2019
Posts: 5
D
deepscreener Offline OP
Newbie
deepscreener  Offline OP
Newbie
D

Joined: Dec 2019
Posts: 5
I know this script. Does not help because it deals with one pair. The question was about multiple pairs.

Re: Trading list of asset pairs [Re: deepscreener] #485368
03/01/22 18:08
03/01/22 18:08
Joined: Dec 2021
Posts: 7
B
budfox Offline
Newbie
budfox  Offline
Newbie
B

Joined: Dec 2021
Posts: 7
Hey deepscreener,

I was wondering if you made any progress on the project and if so could share them?

I'm currently working on a similar concept but the implementation was rather ugly from a logical / structural standpoint.

Re: Trading list of asset pairs [Re: deepscreener] #485372
03/02/22 09:23
03/02/22 09:23
Joined: Jul 2000
Posts: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
Frankfurt
It it's only about keeping pairs together, loop over pair names separated by some delimiter character, like "STOCK1|STOCK2", then parse the ticker names out of the pair name.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1