Hi,
My problem is now: I have one sell open and now I want to close it and open a buy position instant execution. Below is my solution and it seems to be doing the trick, but are there other better ways to achieve the aforementioned goal? Thank you for your help community!
Do this manually on demo : open buy 1 lot of EURUSD and then after it opened, open sell 2 lots of EURUSD.
What trade position you have now, and what lot it has ?
Can you code that ?
Do this manually on demo : open buy 1 lot of EURUSD and then after it opened, open sell 2 lots of EURUSD.
What trade position you have now, and what lot it has ?
Can you code that ?
Thanks again, phi.nuts. Tried it and it also solves my problem. I'll try to implement that to my code. I think its good for learning to figure out alternative ways to achieve things.
thanks for share useful script

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
My problem is now: I have one sell open and now I want to close it and open a buy position instant execution. Below is my solution and it seems to be doing the trick, but are there other better ways to achieve the aforementioned goal? Thank you for your help community!