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
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: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
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,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
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