Moving Average Multi TimeFrame

MA4 MTF draws up to four moving averages on a single chart. Each MA is fully independent and can be calculated on any timeframe, so you can watch an H4, D1 and W1 trend while trading on M15, all with one indicator.

Features
- 4 moving averages in one indicator, each with its own Enabled switch
- Separate timeframe per MA: Current, or any timeframe from M1 to MN1
- Separate settings per MA: Period, Method (SMA, EMA, SMMA, LWMA), Applied Price
- Separate style per MA: Color, Width, Line Style
- Works with higher and lower timeframes than the chart:
- Higher timeframe: each chart bar shows the value of the higher-timeframe bar that contains it (step shape). The still-open higher-timeframe bar is updated on every tick.
- Lower timeframe: each chart bar shows the lower-timeframe value at the close of that chart bar.
- Data Window labels show each line's settings, e.g. MA2 H4 EMA(50)
- Disabled MAs are not calculated and are hidden from the Data Window
- If another timeframe's history is not loaded yet, the indicator redraws itself automatically
- Max Bars to Draw option (0 = all) to limit the calculation on long histories
- Uses the built-in iMA function, so the values are the same as MetaTrader 5's standard Moving Average

Inputs (for each of MA1-MA4)
- Enabled: show or hide this MA
- Timeframe: timeframe the MA is calculated on (Current = chart timeframe)
- Period: MA period, in bars of the selected timeframe
- Method: SMA, EMA, SMMA or LWMA
- Applied Price: Close, Open, High, Low, Median, Typical, Weighted
- Color / Width / Line Style: line appearance

General
- Max Bars to Draw: number of most recent bars to draw (0 = all bars)

Default settings: 20 EMA (blue), 50 EMA (orange), 100 SMA (magenta), 200 SMA (red), all on the chart timeframe.

Usage example (H1 chart)
- MA1: H1 EMA 20 - short-term trend
- MA2: H4 EMA 50 - intermediate trend
- MA3: D1 SMA 100 - daily trend
- MA4: W1 SMA 200 - long-term support/resistance

Note
A higher-timeframe MA changes until that higher-timeframe bar closes. This is normal for every multi-timeframe indicator. Use closed bars if you need fixed values.

Credits
Developed by Cihan Uğurlu (https://www.linkedin.com/in/cihan09/) with Claude (Anthropic AI).
Free to use and share.

筛选:
无评论
回复评论