Scripts: Order Closer Scripts

MetaQuotes
Moderator
236222
MetaQuotes  

Order Closer Scripts:

Scripts to Close Orders under various conditions

Author: James Malwitz

Desmond Wright
3964
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?

Zeus Consulting Group LLC
131
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