fikira

Histogram (MACD) with Divergences

fikira Wizard 已更新   
The focus with this MACD plot is solely towards the Histogram.
MACD & Signal can be made visible, but is made invisible by default.

The brighter line (green-red) is derived from the 'usual' MACD, the initial settings are completely different though:
- Fast Length 1
- 'Slow' Length 7
This is Histogram (1)

When this line crosses the 0 - line, this can give a nice early BUY - SELL sign,
especially combined with the 2nd Histogram, which uses a Slow Length of 49.
This latter Histogram (2) is filled ("Area") with a green/orange colour.

When Histogram (2) cross the 0 - line, this is visible as a green/red 'Cross'
These "Crosses", compared with the candles, gives possible/probable Support/Resistance lines.

Example,
if you bought on 5 March (Green Cross), and sold on 14 July, you'd have a nice profit!


A nice green area filled Histogram (2) (above 0 - line) can be considered as very Bullish,
an orange area filled Histogram (2) (below 0 - line) can be considered as Bearish.

Histogram (1) line can be used for shorter term Buy - Sell trades, the larger Bullish/Bearish Trend (of Histogram (2)) taking into account!
(see yellow dotted lines on the image).

All this is combined with a "Divergence" plot (with thanks to "Coingrats" (and "BabyWhale83") for the hard work!)
The small, more bright Triangles are triggered by Histogram (1)
The larger Triangles are triggered by Histogram (2)

- Green Triangles are Bullish Divergences
- Red Triangles are Bearish Divergences
- White Triangles (pointing upwards/downwards) are Bullish/Bearish Hidden Divergences

Very importantly, always combine the Divergence Triangles with another tool for confirmation, for example a MACD or RSI which produced an extra confirmation.
The movement of Histogram (2) above or below the 0 - line can be a confirmation as well.

As default these 3 options are enabled (for me this gives better results):

Simple MA (Oscillator)
Simple MA (Signal Line)
Simple MA (Signal Line 2)

This indicator can be used with normal "Candles", "Line", or "Heikin Ashi" (gives some differences)

Hope this is original and helpful!
版本注释:
- Used my updated Divergences (Pivots)
- fixed small errors
- Settings made more clear
- more info between script
版本注释:
- Added my "Divergences (Pivots)" (PivDiv 3)

Different options for Divergences:
- 'Long Period', default checks 25 bars to the Left (="History") and 1 bar to the Right (="Future")
- 'Medium Period', default checks 15 bars to the Left (="History") and 1 bar to the Right (="Future")
- 'Short Period', default checks 5 bars to the Left (="History") and 1 bar to the Right (="Future")

Each Bar checks an amount of Bars at the Left (="History") and Bars to the Right (="Future"), insuring this particular Bar is the Highest or Lowest of them all at "close",
this is compared to the or or and so we have our Divergences.
There is always a slight delay (number of Bar(s) at the Right side (="Future")

> You can alter both sides in a way that suits you best

If you like a setting, where the amount of “RightBars” equals the ”LeftBars” you can enable the " > Only change 'LeftBars'" button.
Then you only have to adjust the amount of “LeftBars” and the amount of “RightBars” automatically will be the same.

- Sensitivity Divergences, default x = '5'
x ⩾ 2 compares the value with ⩾ 2 previous values instead of 1, making the sensitivity higher

Bullish divergences are "Green":
- "⇡︎" = 'Short' "period"
- "↑︎" = 'Medium' "period"
- "⇧" = 'Long' "period"

Bearish divergences are "Red"
- "⇣︎" = 'Short' "period"
- "↓︎" = 'Medium' "period"
- "⇩︎" = 'Long' "period"

Hidden Bullish divergences are "White":
- "⇡︎" = 'Short' "period"
- "↑︎" = 'Medium' "period"
- "⇧" = 'Long' "period"

Hidden Bearish divergences are "White"
- "⇣︎" = 'Short' "period"
- "↓︎" = 'Medium' "period"
- "⇩︎" = 'Long' "period"

While evaluating be sure to check other time frames as well!

- Added Alerts

Thank you!

LuxAlgo Dev: www.luxalgo.com
PineCoder: www.pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?