거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

ToClearObjectsByType - MetaTrader 5용 스크립트

조회수:
2358
평가:
(22)
게시됨:
2017.05.29 14:05
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: 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.