SCRIPT TO REVERSE A PLACED ORDER

 

I am still looking for a script to reverse a placed order. Anyone with it would most appreicated....

 

What do you mean???

Once a market order is placed you're stuck with it, and there isn't much you can do about it.

What you can do is :

-Close it

-Change TP or SL.


You can not:

-"cancel" it (and get your money back)

-change lots

-put it on "hold"

-change buy to sell, etc...

 

search links

look here

 
BIGFOOT wrote >>

I am still looking for a script to reverse a placed order. Anyone with it would most appreicated....

Close all selll wich are open with the sell script and open a buy.

Parameters (TP, SL) u can change in the script and compile.

Files:
buy.mq4  2 kb
 
BIGFOOT wrote >>

I am still looking for a script to reverse a placed order. Anyone with it would most appreicated....

and viice versa :-)

Try and use for own risk!

Files:
sell.mq4  2 kb
 

Try this


https://www.mql5.com/en/code/8058
 

I'm wondering if I had the source code and anyone out there can change it?

The EA has less than 1000 lines and more than 20 over functions and validation.

Anyone keen to help me out?

 
rider_j:

I'm wondering if I had the source code and anyone out there can change it?

The EA has less than 1000 lines and more than 20 over functions and validation.

Anyone keen to help me out?


the question is what help do u need
 

Ok..here is the file that will reverse any order once it placed attached. It is a script, so put it in your script directory. Once a trade is established and you want to reverse your position just click on this script to reverse it. Easy.

Files:
reverse.ex4  2 kb
 
This post is about mq4 language. Don't post executables, post THE CODE.
 
BigfOOt:

Ok..here is the file that will reverse any order once it placed attached. It is a script, so put it in your script directory. Once a trade is established and you want to reverse your position just click on this script to reverse it. Easy.


Hi BigfOOt,


It works well. But can you modify the EA in a way that it don't close the existing loss order and at the same time open an opposite order. It will only close when these orders total amount in designated profit. Can help?


Thanks.