Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 01/31/26 17:11
Lapsa's very own thread
by Lapsa. 01/30/26 19:44
Zorro version 3.0 prerelease!
by TipmyPip. 01/30/26 13:36
Historical Data with the 64bit FXCM Plugin
by Martin_HH. 01/28/26 18:45
SGT_FW
by Aku_Aku. 01/27/26 15:10
Buy A8 Pro Version
by Ezzett. 01/26/26 14:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Ayumi, TipmyPip, Quad, Spirit, 1 invisible), 9,285 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Sfrdragon, mayarik, Castromangos, Quantum, stephensdeborah
19195 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 Offline
Senior Member
Grant  Offline
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,811
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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