Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


CloseOrdersBySymbol - script for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 17
2017.05.29 14:14

The script closes all pending orders on the current symbol.

Script input parameters:

//| SCRIPT INPUT PARAMETERS                      |
input uint RTOTAL=4;        // Number of attempts in case of unsuccessful trades
input uint SLEEPTIME=1;     // A pause between the attempts in seconds
input uint  Deviation_=10;  // Price deviation

Translated from Russian by MetaQuotes Software Corp.
Original code:

Morse code Morse code

Trading based on preset candlestick combinations (patterns) Candlesticks are marked as "1" (bullish) and "0" (bearish). TakeProfit, StopLoss

Size of a candle (histogram) Size of a candle (histogram)

The indicator displays the candlestick size (High-Low) and its direction in the form of a colored histogram.

CloseAllOrders CloseAllOrders

The script deletes all pending orders on all symbols at a time.

CloseOrdersBySymbolByType CloseOrdersBySymbolByType

The script deletes all orders of the type specified in settings, on the current symbol.