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
1 registered members (Grant), 6,791 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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: 319
Netherlands
G
Grant Online
Senior Member
Grant  Online
Senior Member
G

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

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