EW Easy Counter Script-Remove All Labels-V2
Download scriptThis script is a specialized utility designed to clean up your trading charts by automatically removing specific visual markers. When using advanced technical analysis tools—specifically the "Corrective Wave" and "Motive Wave" scripts—your chart can quickly become cluttered with numerous labels and price notations.
The primary purpose of this tool is to provide a "reset" button for your visual workspace. Instead of having to manually click on every individual label to delete them one by one, this script performs a comprehensive sweep of the chart. It identifies and removes all objects that follow the specific naming conventions used by those two wave scripts.
How it works: The logic operates by cycling through a large range of possible identification numbers. It systematically looks for any visual elements labeled as "Wave" or "Counter Wave" and deletes them from the display instantly. By covering a wide numerical range in both loops, the script ensures that whether you have five labels or fifty on your screen, they are all cleared out in one go.
Once the script is executed, it clears the workspace entirely of these specific wave indicators, allowing you to start with a clean slate for your next analysis without leaving behind old data from previous calculations.
//+------------------------------------------------------------------+
//| EW Labeler-Remove Labels.mq4 |
//| This tool removes all the wave labels created |
//| by the Corrective wave script and the Motive wave script |
//| More free tools @ tradertools-fx.com |
//| Paul Nordin |
//| http://www.tradertools-fx.com |
//+------------------------------------------------------------------+
#property copyright "© 2011 TRADERTOOLS-FX.COM"
#property link "http://www.tradertools-fx.com"
int numCycles = 100;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start() {
//----
for ( int j = 0; j < numCycles; j++ ) {
for ( int i = 0; i < numCycles; i++ ) {
ObjectDelete( StringConcatenate( "Wave", i, j ) );
ObjectDelete( StringConcatenate( "Counter Wave", i, j ) );
}
}
//----
return(0);
}
int deinit() {
Comment("");
return(0);
}
//+------------------------------------------------------------------+
Comments