TradingView
Faizfathi07
30 Dis 2021 pukul 16.04

Multiple Timeframe (Moving Average) With Info 

HARBOUR-LINK GROUP BHDMYX

Huraian

This indicator combine 4 indicator in one pine script : Main indicator is Moving Average in multiple timeframes, Bollinger Band, Crossover Signal, Info Panel, 52Weeks High & 52 Weeks Low.

1)
For multiple moving average, it has 9 difference timeframes.
- Default timeframes is (1minute, 5minutes, 15minutes, 30minutes, 1hour, 4hours, 1Day, 1Week & 1Month). User also have choices to change the option.
- For Moving Average, there also available multiple choice of Moving Average : SMA , EMA , DEMA , VWMA , RMA, WMA . Default Moving Average is EMA (200)
- There also include info panel / table that show TF (Timeframes) for every MAs, & their price. Colors change according to current price. Bullish = Green, Neutral = Neutral, Bearish = Red
There are also function for user to turn on/off :
- (MA) Type & Lenght.
- Multiple MAs.
- Info / Table

User can use multiple line in daily chart to find support & resistance .

Example : For uptrend stock, candle close on top of EMA200 line for 1 hour timeframe. So it's can becomes immediate support, while the other EMAs on below is their next support.
Example :


For downtrend stock, candle close on top of EMA200 line for 5minutes timeframe. So it's become support, while the other EMAs on top is their resistance.
Example :


This Multiple MAs Inspired by xdecow :
tradingview.com/u/xdecow/
Checkout his Multi Timeframe Moving Average here :
tradingview.com/script/IzmSs7Ma-Multi-Timeframe-Moving-Average-xdecow/

2)
This indicator also have Bollingger Band. User have option to turn it on / off. User can use it as a target price if all the EMAs below the candle.

Example :


3)
This indicator also shown 52 Weeks High & 52 Weeks Low. User have option to turn it on / off. Their price also shown at the info panel.

Example :


4)
Crossover Signal. This crossover is default, it happen when candle close on top / near timeframe 5Minutes is (Ready). While candle close below timeframe 5Minutes is (Caution). User can choice other shape if they don't want the text label. To change the crossover for other setup, user can change it under = #2. The crossover only shown in past 10 candle.

Example :


Feel free to use it & comment. Thanks.

Nota Keluaran

5)
New update (30 January 2022) :

Addon star signal. To help traders aware of long / swing position in daily chart.

Signal appear when current price crossover Moving Average 20 (MA)/weekly, plus crossover Moving Average Exponential 10(EMA)/Daily & crossover Moving Average 50(MA)/Daily.

If not meet this 3 criteria. Signal will not shown.

Example :

Nota Keluaran

New update (24 February 2022) :

2 Add on
1) ATR Line
2) Label for 52Week High

1) ATR Line.
Green (Start) New Start for uptrend
Red (End) New Start for downtrend

Also Add on value for each signal.

Example :


I am inspired from : tradingview.com/u/KivancOzbilgic/

Check out his Supertrend here :
my.tradingview.com/script/r6dAP7yi/

2) 52Week High Label.

The Idea is to find price that tried to breakout 52Weeks High & as a signal if the price are doing pullback.

Example :

Nota Keluaran

New update (25 August 2022) :

Add :
1) EMA Line with info for 2hour.

Remove :
1) ATR Line - To make indicator focus on multiple moving average for multiple timeframe.

Change :
Crossover Signal - From wording change to flag simbols.

Nota Keluaran

Update (9/9/2022)

1) Addon tooltips on setting
2) Make it more clean on setting
3) Add on Alert for Reversal
4) Add reversal signal & bar color base on Bollinger Band :
- Bullish Signal = Candle went out lower band AND red candle AND came back in AND green candle (Lime "R")
- Bearish Signal = Candle went out upper band AND green candle AND came back in AND red candle (Yellow "R")
- Show Check (✓) = As comfirmation - close above/below candle wick

This signal I get inspire from StrategicalCharts : tradingview.com/u/StrategicalCharts/

Check out his indicator here :
tradingview.com/script/mWiAL3w7-Reversal-Indicator/
Komen
joban444
is it possible to change visibility settings such that moving average lines of ONLY higher timeframes and plotted on the current chart and lines from lower timeframes can be hidden? For eg: On 1 hr chart, 4hr and daily lines will be plotted, and 15min and 30min can be hidden.
Faizfathi07
@joban444, yes.. it's possible, just go to setting > input > search timeframes, then unclick any ema line thats you does't need. Also can change the MA type if U prefer other MA type.
yogibear
Hello Faize,
thank you for awesome indicator.
i am not sure what is the flaw but i was comparing your indicator values with along with the SMA indicator as i have both yours and SMA indicators added on my chart.
today what i observed on spx chart is if i am on a 3minute chart then on your indicator the daily 13 SMA number for today was 5099 vs if i switch to daily timeframe setting then 13 SMA indicator value and your indicator value are 5089.38 so there is discrepancy of 10 points when we observe the higher timeframe 13 SMAs on lower timeframe chart.
Is it possible to fix this?
yogibear
Also another request is it possible to add setting where you can only see all MAs configured on your indicator for only last 5 candles? so we dont clutter the view? it woudl be a great add if you can .
Faizfathi07
Hello @yogibear,
Faizfathi07
Hello @yogibear,

I'm glad you're finding the indicator helpful! Thanks for reaching out about the difference in values between this indicator and the built-in SMA indicator on TradingView.

It seems there is a misunderstanding regarding how moving averages are calculated on different timeframes in TradingView. Let me explain the behavior you are observing and provide some clarification.

When you plot a moving average on a higher timeframe chart, like the daily chart, the moving average is calculated using only the data points from that higher timeframe. For example, if you plot a 13-period Simple Moving Average (SMA) on the daily chart, it will take the last 13 daily candlestick values to calculate the average.

However, when you plot the same 13-period SMA on a lower timeframe chart, like the 3-minute chart, the moving average is calculated using the data points from the lower timeframe. In this case, it will use the last 13 * (number of 3-minute bars in a day) data points to calculate the average.

This difference in the number of data points used for the calculation is the reason why you are seeing a discrepancy between the SMA values on the daily chart and the lower timeframe chart.

The value you see on the daily chart (5089.38) is the "true" value of the 13-period SMA when calculated using daily data. The value you see on the 3-minute chart (5099) is an approximation of the daily SMA, calculated using a larger number of data points from the lower timeframe.

However, to address your concern, I'll review the script to ensure consistency across all timeframes. It's possible that there may be adjustments needed to align the calculations properly.
ProjecTSnipeR
Terbaik
Faizfathi07
@ProjecTSnipeR, terima kasih bang.
Lebih