Forex Factory (https://www.forexfactory.com/)
-   Platform Tech (https://www.forexfactory.com/forum/69-platform-tech)
-   -   script to "close open orders" and "open opposite orders" (https://www.forexfactory.com/thread/215022-script-to-close-open-orders-and-open-opposite)

dancingphil Jan 9, 2010 4:52pm | Post# 1

script to "close open orders" and "open opposite orders"
 
Can someone direct me to a script which will close exisiting open/pending orders and open opposite orders.

I am wanting to set money management %, SL and Trailing Stop in the script, and then to run it when my indicator says so.

ForexSaints sticky archive of scripts does not seem to contain this one.

thx

Star178 Feb 27, 2010 11:48am | Post# 2

Close and Reverse
 
1 Attachment(s)
[quote=dancingphil;3352870]Can someone direct me to a script which will close exisiting open/pending orders and open opposite orders.


You can try out the attached file and copy into the script folder. This is applicable when you have a trade and the price is moving in the oppersite direction.
Close & Reverse.mq4

Freddyfx May 23, 2011 10:01am | Post# 3

Takes out the existing trade, but does not enter an opposite order.

Star178 May 24, 2011 11:05pm | Post# 4

Takes out the existing trade, but does not enter an opposite order.
I had tested this script on demo and it works.
However on newer version of MT4, I am not so sure! (I am not the author).


© Forex Factory