Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 5081
- Rating:
- Published:
- 2017.05.29 14:16
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The script deletes all orders of the type specified in settings, on the current symbol.
Script input parameters:
//+----------------------------------------------+ //| SCRIPT INPUT PARAMETERS | //+----------------------------------------------+ input ENUM_ORDER_TYPE_ OrderType_=ORDER_TYPE_BUY_LIMIT_; // Order type input uint RTOTAL=4; // Number of attempts in case of failure input uint SLEEPTIME=1; // A pause between the attempts in seconds input uint Deviation_=10; // Price deviation
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/18081
![CloseAllOrders](https://c.mql5.com/i/code/script.png)
The script deletes all pending orders on all symbols at a time.
![CloseOrdersBySymbol](https://c.mql5.com/i/code/script.png)
The script closes all pending orders on the current symbol.
![Sound Alert Entry Out](https://c.mql5.com/i/code/expert.png)
Plays a sound when position is closed.
![CandleDifference](https://c.mql5.com/i/code/indicator.png)
The indicator displays the change in price as a percentage relative to the Open price of the current candlestick.