Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (EvanTJ, Grant, AndrewAMD), 7,247 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,150
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,150
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