Auftrag beendet
Spezifikation
Hi,
I need BUY_LIMIT, SELL_LIMIT, BUY, SELL (market orders), CLOSE_ALL, CANCEL_ALL scripts for MT5.
BUY_LIMIT should put Buy Limit orders with parameters lots, stoploss, profit target and buy_price
SELL_LIMIT should put Sell Limit orders with parameters lots, stoploss, profit target and sell_price
BUY should put Buy market orders with parameters lots, stoploss, profit target
SELL should put Sell market orders with parameters lots, stoploss, profit target
Add an extra parameter number_of_orders for all the above 4. This parameter should put that many orders, that is given there. For example if 10 is selected it should put 10 different orders of the lots given.
CLOSE_ALL should close all current positions immediately at market orders. If there are 'x' number of buy positions then it should issue 'x' number of sell orders and close all and same for sell positions too.
CANCEL_ALL script. This should cancel all the pending limit orders if they are not executed and lying there. Then I can use this cancel_all script and that should cancel all pending orders at once, both Buy and sell orders.This is for futures on MT5. So the I need MT5 scripts and stop loss and profit target should be in ticks. Also, if I don't enter profit target in the above scripts, then it should enter the orders without profit target.
Thanks