TradingView
drewby4321
11 יולי 2020 07:57

Relative Candle 

PayPal Holdings, Inc.NASDAQ

תיאור

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!

הערות שחרור

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!
תגובות
PineCoders
drewby4321
@PineCoders, thank you!
PineCoders
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!
drewby4321
@PineCoders, Thanks, I'm glad you like it! :)
blackcat1402
thanks for sharing
vijay0811vs
Very nice ,thanks god bless u 👍
drewby4321
@vijay0811vs, thanks for the comment! I'm glad you like it.
sendk
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
drewby4321
@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?)
ahmedbadawi
Thank you
How do I use your latest version
עוד