Color Fill Moving Average Indicator for MT4/MT5
Info
The Color Fill Moving Average Indicator for MT4/MT5 is a Indicator for MetaTrader 4 that color fill moving average indicator this indicator enhances the visual perception of price action, assisting with trade entry, continuation, exit, and re-entry decisions on trend continuation. The indicator draws: - Two moving averages: MA1 and MA2.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Indicators folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use Color Fill Moving Average Indicator for MT4/MT5
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
Color Fill Moving Average Indicator This indicator enhances the visual perception of price action, assisting with trade entry, continuation, exit, and re-entry decisions on trend continuation.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Indicator works on MetaTrader 4. Place the file in the MQL4/Indicators folder and restart the terminal.
Description & Settings
Related: fibo color indicator - another powerful indicator for MetaTrader 4 traders.
Color Fill Moving Average Indicator This indicator enhances the visual perception of price action, assisting with trade entry, continuation, exit, and re-entry decisions on trend continuation. The indicator draws:Also recommended: color osma indicator - similar indicator with strong performance on MetaTrader 4.
- Two moving averages: MA1 and MA2.- Two associated price labels for MA1 and MA2.
- Color fill options between price and moving averages, or between the two moving averages themselves.
Color Fill Options:
- Color fill between price and MA1.
- Color fill between price and MA2.
- Color fill between MA1 and MA2.
- No fill.
Check the chart settings (press F8) for foreground options.
Parameters and Trading:
All input parameters and options are adjustable and save automatically. Users are encouraged to explore personal preferences.
The default periods for MA1 and MA2 are 50 and 100 Exponential Moving Averages (EMA), respectively. These periods can be adjusted as required. Line thickness can be increased for better visual definition.
Lower timeframes can be enhanced with the Session Open V-Line indicator.
The use of the Color Fill - MA1 + MA2 indicator as part of a trading system or tool is subject to user discretion.
MA1 and MA2 Price Labels:
The labels are initially positioned in the lower right corner but can be repositioned to any location on the chart. Labels can be hidden if not required. If MA1 or MA2 is hidden, its associated price label will also be hidden.
The accuracy of price labels can be verified by drawing a horizontal line on the chart and setting its value to the price indicated on a MA1 or MA2 label. The horizontal line should align precisely with the end of the corresponding MA line.
Notes:
This indicator is built on the core code of the Custom Moving Average indicator.
A price input variable has been added, including value parameters: close, open, high, low, and median. Accuracy of price coding can be checked by placing a standard MT4 moving average on the chart and comparing the overlay of MA1 and MA2 against it. The Home and End keyboard buttons can be used to locate the start and end of the MA line (ensure auto-scroll is inactive).
Median is calculated as (high + low) / 2.
Moving Average Types Supported:
- SMA (Simple Moving Average)
- EMA (Exponential Moving Average)
- SMMA (Smoothed Moving Average)
- LWMA (Linearly Weighted Moving Average)
Price Types Supported:
- close
- open
- high
- low
- median (high + low) / 2
The input shift variable can be checked similarly by comparing MA1 and MA2 shift parameters against a test component.
Default Input Parameters:
- MA Color Fill: 3 (specifies fill option)
- MA1 Period: 50
- MA2 Period: 100
- MA1 Shift: 0
- MA2 Shift: 0
- MA1 Method: Exponential
- MA2 Method: Exponential
- MA1 Price: close
- MA2 Price: close
- Show MA1: true
- Show MA2: true
- MA1 Label Color: indicator_color1
- MA2 Label Color: indicator_color2
- Label Bold: true
- Label Size: 12
- Label Corner: 3 (bottom-right)
- Label Left/Right Offset: 20
- Label Up/Down Offset: 10
- Show Labels: false
You may also like: ls m a in color indicator - excellent alternative for indicator users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property version "3.00"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property strict
#property indicator_chart_window
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 sandybrown
#property indicator_color2 thistle
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.