Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 827 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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 Online
Serious User
AndrewAMD  Online
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