TradingView
LuxAlgo
24 апр 2023 г., 14:45

Range Sentiment Profile [LuxAlgo] 

Advanced Micro Devices, Inc.NASDAQ

Описание

The Range Sentiment Profile indicator is inspired from the volume profile and aims to indicate the degree of bullish/bearish variations within equidistant price areas inside the most recent price range.

The most bullish/bearish price areas are highlighted through lines extending over the entire range.

🔶 SETTINGS

  • Length: Most recent bars used for the calculation of the indicator.
  • Rows: Number of price areas the price range is divided into.
  • Use Intrabar: Use intrabar data to compute the range sentiment profile.
  • Timeframe: Intrabar data timeframe.


🔶 USAGE



This tool can be used to easily determine if a certain price area contain more significant bullish or bearish price variations. This is done by obtaining an estimate of the accumulation of all the close to open variations occurring within a specific profile area.

A blue range background indicates a majority of bullish variations within each area while an orange background indicates a majority of bearish variations within each area.



Users can easily identify the areas with the most bullish/bearish price variations by looking at the bullish/bearish maximums.



It can be of interest to see where profile bins might have no length, these can indicate price areas with price variations with alternating signs (bullish variations are followed by a bearish sign) and similar body. They can also indicate a majority of either bullish or bearish variations alongside a minority of more significant opposite variations.

These areas can also provide support/resistance, as such price entering these areas could reverse.



Users can obtain more precise results by allowing the profile to use intrabar data. This will change the calculation of the profile, see the details section for more information.

🔶 DETAILS

The Range Sentiment Profile's design is similar to the way a volume profile is constructed.

First the maximum/minimum values over the most recent Length bars are obtained, these define the calculation range of the profile.

The range is divided into Rows equidistant areas. We then see if price lied within a specific area, if it's the case we accumulate the difference between the closing and opening price for that specific area.

Let d = close - open. The length of the bin associated to a specific area is determined as follows:

length = Width / 100 * Area / Max


Where Area is the accumulated d within the area, and Max the maximum value between the absolute value of each accumulated d of all areas.

The percentage visible on each bin is determined as 100 multiplied by the accumulated d within the area divided by the total absolute value of d over the entire range.

🔹 Intrabar Calculation

When using intrabar data the range sentiment profile is calculated differently.

For a specific area and candle within the interval, the accumulated close to open difference is accumulated only if the intrabar candle of the user selected timeframe lies within the area.

This can return more precise results compared to the standard method, at the cost of a higher computation time.
Комментарии
PineCoders
Torchicy
This might be a pretty stupid question, but say the maximum bullish level is below the current price and minimum bearish level is above the current price. What would that indicate to the user? Really cool script by the way!
Dauelsberg
@Torchicy, Hallo, I have the same question. Can you give me an answere? Thank you!
Makingithappen
@Torchicy, Surprised no one gave this a swing. I will take a swing at it. There could be some some value area gaps in play. For example lets say that the market maker wanted to pump the price up 10% beyond the current level. That means that there will be a market imbalance and many orders will not get filled. It also means that it is highly likely that those areas will get tested again. Another example of this, where I see this most often is the Psychological High and Psych low. I will often see price substantially above the Psy high or substantially below the Psy Low.
GoldenSack
@Torchicy, look at another timeframe to find out, preferably lesser one
kjsvijay123
hai sir.what is the dotted line tells?and what time frame i need to set for intraday trading?
quraishi2k17
does this strategy repaint?
brainchild70
@quraishi2k17, should be as sentimen always change with emotions
Pratik_4Clover
Nice one!
PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
Ещё