Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Vues:
2577
Note:
(22)
Publié:
2017.05.29 14:05
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

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

//+-----------------------------------------------+
//|  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 all charts of the client terminal.

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

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

A version for removing news label, which appear regularly and clutter the chart — ToClearObjectsByOBJ_EVENT:

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

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/17997

ToClearChartObjectsByType ToClearChartObjectsByType

The script removes from the current chart all objects of the user selected type

Bollinger Bollinger

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

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.

cm_ind_level_cndl cm_ind_level_cndl

The indicator displays the price pivot point.