Download MetaTrader 5

Scripts: Order Closer Scripts

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
187157
MetaQuotes Software Corp.  

Order Closer Scripts:

Scripts to Close Orders under various conditions

Author: James Malwitz

Desmond Wright
1129
Desmond Wright  

now make it close pending orders as well.....

joeRockk
16
joeRockk  

Hi Guys,

There seem to be a problem with your script when it come to live trading. I have found that the JMSELLER and JMBUYER works in live trading, but the script you wrote that has a stop loss and take profit does not work. Also, I've been playing around with your script and I would like to know if there is a way to leave in take profit but remove the stop loss?

OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);

How do you take out the stoploss and leave in the take profit?

James Malwitz
33
James Malwitz  
buju:

now make it close pending orders as well.....



ILL GET RIGHT ON THAT MASTER IM SORRY FOR MY IGNORANCE IN NOT BEING ABLE TO PLEASE EVERYONE WITH MY HARD WORK AND EFFORT BY GIVING YOU SOMETHING FOR FREE. MAYBE YOU SHOULD CONSIDER LEARNING TO TALK TO PEOPLE LIKE THEY ARE NOT YOUR SERVANTS BUJU
To add comments, please log in or register