ytg_ObjectsDeleteAll

Download script
Author: Yuriy Tokman
ytg_ObjectsDeleteAll

This script is a specialized utility designed for the MetaTrader 4 trading platform. Its primary purpose is to provide a "clean slate" for your trading charts by instantly removing all visual elements that may be cluttering the workspace.

How it Works

When you execute this script, it performs a single, automated action: it scans the current chart and identifies every graphical object added to it. This includes various types of visual aids such as:

  • Trendlines and horizontal/vertical lines.
  • Text labels and notes.
  • Custom geometric shapes or drawing objects.
  • Other non-core indicators that have been manually placed or generated by other tools.

The Benefit to the User

Traders often find that over time, a chart can become "noisy" with old drawings, outdated markings, or leftover lines from previous trading sessions. This makes it difficult to see current price action clearly.

By running this script, you can instantly wipe those visual distractions away in one click. It is an essential housekeeping tool for traders who want to clear their workspace quickly so they can focus on fresh data without having to manually delete every single line and label one by one.

8 Views
0 Downloads
0 Favorites
ytg_ObjectsDeleteAll
//+------------------------------------------------------------------+
//|                                         ytg_ObjectsDeleteAll.mq4 |
//|                                                     Yuriy Tokman |
//|                                            yuriytokman@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Yuriy Tokman"
#property link      "yuriytokman@gmail.com"

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
   ObjectsDeleteAll();
//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments