CleanChartToggle

Clean Chart Toggle – MQL4

One-Click Chart Clutter Remover | Instant Clean Mode

One click. Zero clutter. Instant clarity. 🎯

📖 Overview

Clean Chart Toggle is a simple yet powerful MetaTrader 4 utility indicator that instantly hides all chart clutter with a single click. Perfect for traders who need a clean workspace for analysis, screenshots, or presentations, this indicator toggles between normal and clean chart modes with visual feedback and customizable controls.

Stop wasting time manually hiding individual elements. One click – and your chart is spotless.

✨ Key Features

Feature Benefit
One-Click Toggle Single button press switches between Normal Mode and Clean Mode
Instant Clean Mode Hides ALL chart objects, indicators, grid, bid/ask lines, period separators, volume bars, and OHLC line
Automatic Restoration Returns all chart objects and settings to their original state when toggling back
Visual Feedback Button changes color to indicate current mode (Blue = Normal / Orange = Clean)
Fully Customizable Button Adjust position, size, colors, and font to match your workspace
Preserves Your Setup Remembers which objects were hidden and restores them exactly

🧹 What Gets Hidden in Clean Mode

Category Hidden Items
Chart Objects Horizontal lines, trend lines, Fibonacci tools, text labels, arrows, shapes, channels, Elliott Wave labels – every drawing object
Indicators All indicators from main chart AND subwindows (⚠️ see note below)
Chart Elements Grid, Ask/Bid price lines, Period separators, Volume bars, OHLC/Last price line

Before (Normal Mode)

text

┌─────────────────────────────────────────────────────────────────┐ │ [Chart with: grid, 5 indicators, trend lines, horizontal lines, │ │ ask/bid lines, volume bars, period separators, labels...] │ │ [Normal Mode] │ └─────────────────────────────────────────────────────────────────┘

After (Clean Mode)

text

┌─────────────────────────────────────────────────────────────────┐ │ │ │ CLEAN CHART │ │ (only price candles/bars) │ │ [Clean Mode] │ └─────────────────────────────────────────────────────────────────┘

🖱️ Interactive Controls

Mode Button Appearance What Happens
Normal Mode Blue button (default) All chart elements visible
Clean Mode Orange/Red button (default) All clutter hidden – only price remains

Click the button to toggle instantly between modes.

⚙️ Input Parameters (MT4)

Button Settings

Parameter Default Description
ShowButton true Enable/disable the toggle button
ButtonX 20 Horizontal position (pixels from left edge)
ButtonY 50 Vertical position (pixels from top edge)
ButtonWidth 120 Button width in pixels
ButtonHeight 30 Button height in pixels
ButtonColorNormal DodgerBlue Button background color in Normal Mode
ButtonColorClean OrangeRed Button background color in Clean Mode
ButtonTextColor White Button text color
ButtonFontSize 10 Button font size
ButtonFont "Arial Bold" Button font family

🎨 Button Customization Examples

Example 1: Small, Discreet Button

Parameter Value
ButtonX 5
ButtonY 5
ButtonWidth 80
ButtonHeight 20
ButtonFontSize 8

Example 2: Large, Prominent Button

Parameter Value
ButtonX 10
ButtonY 100
ButtonWidth 150
ButtonHeight 40
ButtonFontSize 12
ButtonFont "Arial Bold"

Example 3: Alternative Color Scheme

Parameter Value
ButtonColorNormal DarkSlateGray
ButtonColorClean Crimson
ButtonTextColor White

🎯 Use Cases

Scenario How Clean Chart Toggle Helps
📸 Screenshot Preparation Create clean, professional-looking charts for trading journals, social media, client presentations, or educational content
📊 Technical Analysis Remove distractions to focus purely on price action – see the "naked chart" without indicators clouding your view
📈 Trading Decisions Toggle between analytical view and clean view to check if your setup still looks valid without indicators
🎓 Teaching & Presentations Present clean charts to students or colleagues, then add your own annotations without existing clutter
📝 Before/After Comparisons Create powerful before-and-after images showing the impact of your analysis

⚠️ Important Note: Indicators Are Permanently Removed

When switching to Clean Mode, all indicators are permanently removed from the chart.

Action Normal → Clean Clean → Normal
Chart objects (lines, shapes, labels) Hidden Restored ✓
Chart settings (grid, bid/ask, etc.) Hidden Restored ✓
Indicators Removed ✗ NOT restored

Why? MT4 does not allow indicators to be automatically re-added after removal.

Recommended Workflow

  1. Before using Clean Mode, save your chart template:

    • Right-click chart → Template → Save Template

    • Name it (e.g., "My Analysis Setup")

  2. Click Clean Mode – indicators are removed, but objects and settings are hidden

  3. When you want your indicators back:

    • Right-click chart → Template → Load Template

    • Select your saved template

This preserves your full setup while still giving you one-click clean access.

🛠️ Technical Details

How It Works

Normal → Clean Mode Transition:

  1. Stores current chart settings (grid, ask/bid lines, period separators, etc.)

  2. Creates a list of all chart objects (excluding the toggle button)

  3. Hides all objects using  OBJPROP_TIMEFRAMES = OBJ_NO_PERIODS

  4. Removes all indicators from all chart windows

  5. Hides grid, ask/bid lines, period separators, volume bars, and OHLC line

  6. Changes button color and text

Clean → Normal Mode Transition:

  1. Restores chart settings from stored values

  2. Restores visibility of all hidden objects using  OBJPROP_TIMEFRAMES = OBJ_ALL_PERIODS

  3. Changes button color and text back to normal

Multi-Chart Support

Scope Behavior
Current chart only Toggle affects only the chart the indicator is attached to
Other charts Unaffected – your other charts remain as-is
Global MT4 settings Unaffected

🐛 Troubleshooting

Problem Solution
Indicators not reappearing Manually re-add indicators or load your saved chart template after returning to Normal Mode
Objects still visible after Clean Mode Some objects may need manual handling – try toggling again
Button doesn't respond Check  ShowButton = true  and button is within visible chart area
Chart looks different after restore Save your chart template before toggling, then reload it after
Subwindow indicators remain Some subwindow indicators may need manual removal
Button not visible Adjust  ButtonX  /  ButtonY  values to bring it on-screen

💡 Pro Tips

Tip Why It Helps
Save your chart template first Essential before using Clean Mode – preserves your indicator setup
Use keyboard shortcut Consider creating a hotkey for this indicator using MT4's custom hotkey system
Combine with screenshot tools Perfect for creating clean trading journal entries
Toggle during analysis Switch between cluttered analysis and clean decision-making views
Presentation mode Use Clean Mode when sharing your screen during trading sessions
Adjust button position Place the button where it won't interfere with your chart analysis

📦 Installation (MT4)

  1. Download  Clean_Chart_Toggle.mq4  or  .ex4

  2. In MT4: File → Open Data Folder → MQL4 → Indicators

  3. Copy the file into the Indicators folder

  4. Restart MT4 or right-click in Navigator → Refresh

  5. Drag Clean Chart Toggle onto your chart

📄 License

This indicator is provided for educational and personal trading use only. Redistribution or commercial use without permission is prohibited.

Clean Chart Toggle – One click. Zero clutter. Instant clarity. 🎯


Yazarın diğer ürünleri
Auto SR Zones
Liam Alex Thomas Webb
The Auto Support/Resistance Zone  is an intuitive indicator for MetaTrader 5 (MT5) that enhances technical analysis by automatically creating customizable zones around horizontal lines on your chart. These zones, defined by a user-specified pip distance, visually highlight key support and resistance areas, helping traders quickly identify key price ranges and potential reversal areas. Key Features Dynamic Zone Creation : Automatically generates zones around horizontal lines, with adjustable p
FREE
Smart Bar Timer
Liam Alex Thomas Webb
The Enhanced Bar Timer is a versatile and customizable indicator for MetaTrader 5 (MT5) that provides real-time information about the current candle, including a countdown timer for the next bar, candle details, volume, and spread. Displayed in the user-specified corner of the chart window, this indicator offers a multi-line or single-line format, allowing traders to monitor critical market data at a glance, enhancing decision-making and trading efficiency. Key Features Real-Time Bar Timer : Dis
FREE
Clean Chart Toggle
Liam Alex Thomas Webb
5 (1)
The Clean Chart Toggle  is a user-friendly indicator designed to enhance your MetaTrader 5 (MT5) charting experience by providing a simple way to manage the visibility of indicators and objects on your chart. With a single button located in the top-left corner of the chart window, users can instantly hide or show all indicators and drawing objects, reducing clutter and improving focus on price action or specific analysis needs.  Key Features - One-Click Toggle Button: A button in the top-left
FREE
The Smart Fib Retracement Zones For MT5  Indicator is your ultimate MT5 companion for instantly visualizing key Fibonacci retracement data—right where you need it: on your zones, in real time. This tool automatically overlays actionable data on top of your Fibonacci retracement zones, such as level classification, pip distance, retracement percentage, and zone strength—cleanly positioned inside each zone. Whether you're scalping intraday or analyzing key Fibonacci levels on the daily chart, thi
PinMetrics MT4
Liam Alex Thomas Webb
PinMetrics – MT4 Pin Bar Size Statistics Dashboard | Wick Ratio Analysis | Performance Metrics Stop guessing which pin bars work. Let the data reveal the edge.   Overview PinMetrics   is a professional MetaTrader 4 indicator that automatically detects and analyzes pin bar patterns, categorizing them by wick-to-body ratio. It provides comprehensive performance statistics for each size category, helping traders identify which pin bar patterns offer the most reliable trading opportunities. No
Smart SR Levels Pro
Liam Alex Thomas Webb
Enhanced Support/Resistance Level Information Indicator for MetaTrader 5 Meet the Enhanced Support/Resistance Level Information Indicator , your ultimate chart companion for visualizing important S/R information in real-time. This MT5 tool automatically labels your horizontal lines with critical S/R metrics— support/resistance classification, touch count, real-time pip distance, level strength, and historical age —all at a glance tucked neatly beneath each level.  Built by traders, for traders
The Smart Supply and Demand Rectangle Tool Indicator is your ultimate MT5 companion for instantly visualizing key supply and demand data—right where you need it: on your zones, in real time. This tool automatically overlays rich, actionable data ontop of your zones, such as zone classification, pip distance, strength, and zone size—cleanly positioned inside each zone. No more clutter, no more guessing—just clear, dynamic insights to support your decisions. Built for Traders. Powered by Precis
Candle Pattern Odds
Liam Alex Thomas Webb
The Candlestick Pattern Odds Dashboard  is a intuitive indicator for analyzing and displaying real-time statistics for key candlestick patterns. This tool detects patterns such as Engulfing, Change of Character (CHOCH), Imbalance, Pin Bar, and Inside Bar, presenting their performance metrics in a customizable dashboard on the chart. Traders can gain insights into pattern reliability, win rates, and risk-reward ratios, making it an essential tool for data-driven trading strategies. Key Features
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt