Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Komut dosyaları

ToClearChartObjectsByType - MetaTrader 5 için komut dosyası

Görüntülemeler:
2491
Derecelendirme:
(24)
Yayınlandı:
2017.05.29 14:05
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

The script removes from the current chart all objects of the type selected by the trader in input parameters.

//+-----------------------------------------------+
//|  SCRIPT INPUT PARAMETERS                      |
//+-----------------------------------------------+
input ENUM_OBJECT OBJ_TYPE = -1;    //The type of objects to delete

When used with default parameters, the script deletes all objects from the current chart.

If you regularly need to delete objects of a fixed type, you should write a copy of the script with the appropriate object type ID specified as an input variable. For example, here is a script for removing trend lines ToClearChartObjectsByOBJ_TREND:

//+-----------------------------------------------+
//|  SCRIPT INPUT PARAMETERS                      |
//+-----------------------------------------------+
ENUM_OBJECT OBJ_TYPE = OBJ_TREND;    //The type of objects to delete

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/17996

Bollinger Bollinger

The Expert Advisor trades inside a channel, reversing positions at the channel borders.

Candle Candle

Trades based on the previous candlestick.

ToClearObjectsByType ToClearObjectsByType

The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.

ToClearObjectsByTypeByTime ToClearObjectsByTypeByTime

The script removes old objects of the selected type from all charts, if the time coordinates of these objects are outside of the trigger level.