Download MetaTrader 5

Scripts: Order Closer Scripts

To add comments, please log in or register
Having difficulties in understanding the Trading Signals service? Read the article!
MetaQuotes Software Corp.
Moderator
181048
MetaQuotes Software Corp. 2008.12.04 08:57 

Order Closer Scripts:

Scripts to Close Orders under various conditions

Author: James Malwitz

Desmond Wright
283
Desmond Wright 2010.02.15 14:18  

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

joeRockk
15
joeRockk 2011.07.13 15:57  

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
25
James Malwitz 2011.08.24 12:21  
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