Scripts: Order Closer Scripts

 

Order Closer Scripts:

Scripts to Close Orders under various conditions

Author: James Malwitz

 

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

 

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?

 
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
Reason: