drewby4321

Relative Candle

This script visualizes the relative movement of a single OHLC candle compared to an index (or another symbol). The vertical location of the candle indicates the general positive/negative comparison of the bar vs the index. The color of the candle indicates how the candle moved relative to the index. The wick indicates the closing range compared to the index (did the symbol close at lows of the bar while the index closed at highs).

The area graph in the background shows the average relative close over a 10-day simple moving average .

I use this to pop any behavior that is out of line with the market, whether positive or negative. For example, is a red bar day due to the market pullback or something specific to the stock. Or did the market pull back and the stock did the opposite, strong day!
Catatan Pelepasan: Updates:
  • Added input.symbol type for Index so it's easier to select the comparative ticker.
  • Matched the resolution to the chart, so it can now be used on more than just Daily charts.

This script visualizes the relative movement of a single OHLC candle compared to an index (or another symbol). The vertical location of the candle indicates the general positive/negative comparison of the bar vs the index. The color of the candle indicates how the candle moved relative to the index. The wick indicates the closing range compared to the index (did the symbol close at lows of the bar while the index closed at highs).

The area graph in the background shows the average relative close over a 10-day simple moving average .

I use this to pop any behavior that is out of line with the market, whether positive or negative. For example, is a red bar day due to the market pullback or something specific to the stock. Or did the market pull back and the stock did the opposite, strong day!
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Rumah. Anda boleh menyukai skrip ini untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?
Website: https://www.drewby.com

Twitter: https://www.twitter.com/drewrobbins

All ideas are for information purposes only. I may or may not invest in the stocks discussed. Before investing in any stock, do your research and trade using your rules.

Komen

500 coin
+1 Balas
drewby4321 PineCoders
@PineCoders, thank you!
Balas
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
+3 Balas
drewby4321 PineCoders
@PineCoders, Thanks, I'm glad you like it! :)
Balas
thanks for sharing
+2 Balas
Very nice ,thanks god bless u 👍
+1 Balas
drewby4321 vijay0811vs
@vijay0811vs, thanks for the comment! I'm glad you like it.
Balas
Hi ,
when i apply the index to Nifty vs NSE stocks, there are no divergences in daily candles and 1 have checked at least a dozen stocks . It is that my sample was small or something else . please advise
+1 Balas
@sendk, Can you give me the ticker/symbol of what you configure as Index in the indicator? And then what is ticker are you viewing on the chart? And also, what timeframe (minute, hour, daily, weekly?)
Balas
Thank you
How do I use your latest version
+1 Balas