당사 팬 페이지에 가입하십시오
- 조회수:
- 2440
- 평가:
- 게시됨:
- 2017.05.29 14:05
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
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에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/17996
![Bollinger](https://c.mql5.com/i/code/expert.png)
The Expert Advisor trades inside a channel, reversing positions at the channel borders.
![Candle](https://c.mql5.com/i/code/expert.png)
Trades based on the previous candlestick.
![ToClearObjectsByType](https://c.mql5.com/i/code/script.png)
The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.
![ToClearObjectsByTypeByTime](https://c.mql5.com/i/code/script.png)
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.