Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
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
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 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
Rate Thread
A robot that sells and buys at the same time #487119
01/23/23 19:28
01/23/23 19:28
Joined: Mar 2021
Posts: 24
A
antoniorenar Offline OP
Newbie
antoniorenar  Offline OP
Newbie
A

Joined: Mar 2021
Posts: 24
What would be the code example of a robot that sells in 2 markets and buys in another two, the trigger would be to give the example the beginning of Friday

Re: A robot that sells and buys at the same time [Re: antoniorenar] #487121
01/23/23 20:19
01/23/23 20:19
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Online
Senior Member
Grant  Online
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands

Re: A robot that sells and buys at the same time [Re: antoniorenar] #487122
01/23/23 20:44
01/23/23 20:44
Joined: Mar 2021
Posts: 24
A
antoniorenar Offline OP
Newbie
antoniorenar  Offline OP
Newbie
A

Joined: Mar 2021
Posts: 24
for example i wanna buy XAUUSD and sell XAGUSD in the same broker its not arbitrage betwen brokers its buy and sell diferents assets

what could be a simple example 😢

Re: A robot that sells and buys at the same time [Re: antoniorenar] #487123
01/23/23 20:58
01/23/23 20:58
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
You call asset() for the first pair and enterLong(). Then you call asset() for the second pair and enterShort().

Re: A robot that sells and buys at the same time [Re: antoniorenar] #487145
01/28/23 00:43
01/28/23 00:43
Joined: Mar 2021
Posts: 24
A
antoniorenar Offline OP
Newbie
antoniorenar  Offline OP
Newbie
A

Joined: Mar 2021
Posts: 24
it work AndrewAMD
Thanks for your time!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1