Unisciti alla nostra fan page
ToClearChartObjectsByType - script per MetaTrader 5
- Visualizzazioni:
- 2387
- Valutazioni:
- Pubblicato:
- 2017.05.29 14:05
- Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
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
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/17996
The Expert Advisor trades inside a channel, reversing positions at the channel borders.
CandleTrades based on the previous candlestick.
The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.
ToClearObjectsByTypeByTimeThe script removes old objects of the selected type from all charts, if the time coordinates of these objects are outside of the trigger level.