Posted By: antoniorenar
A robot that sells and buys at the same time - 01/23/23 19:28
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
Posted By: antoniorenar
Re: A robot that sells and buys at the same time - 01/23/23 20:44
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 😢
Posted By: AndrewAMD
Re: A robot that sells and buys at the same time - 01/23/23 20:58
You call asset() for the first pair and enterLong(). Then you call asset() for the second pair and enterShort().
Posted By: antoniorenar
Re: A robot that sells and buys at the same time - 01/28/23 00:43
it work AndrewAMD
Thanks for your time!