Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Scripts | CLEAR_CHART_ON_NAME_AND_TYPE | MetaTrader Tool

Discover expert developed MetaTrader tools that can complement professional solutions.

Image for CLEAR_CHART_ON_NAME_AND_TYPE

CLEAR_CHART_ON_NAME_AND_TYPE script selectively clears the chart by the part of the name and/or by the type of the object.

Watch in-depth trading tutorials and EA reviews on the RobotFX YouTube channel. Subscribe for free tips.

The lines, marks, texts, channles are accumulated on the chart.

The experiments with the indicators leave thousands of graphic arrows.

You can close and reopen the chart to clear it.

Then you can apply a template to restore the settings.

However all graphical objects will be erased.

24 objects are appplied in MQL 4

This srcipt has 25 parameters for the selective deleting.

The selectivity is specified with the external parameters:

First of all it is any part of the objects' names.

For example:

Then comes a bonus: the list of the objects that can be deleted using this script.

All fields are inactive on default.

Rules:

1. if all fields are inactive, i.e. they are empty or equal to False then the screen will be cleared from all the objects, i.e. the script will delete all graphical objects if you don't modify its parameters.

2. if you change even one parameter:

- specify a part of the object's name: only the objects that contain that part will be deleted.

- specify a type of the graphical objects: all the objects of that type will be deleted.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

8545

Best MetaTrader Indicators + Profitable Expert Advisors