OPEN-SOURCE SCRIPT

Center of gravity - Mid Point + Volume (PolySlyme)

已更新
I created an indicator which suits my scalping needs.

First it calculates the mid point of every candle, then it calculates where the closing price is in the candle and converts that to a percentage from the mid point. Then it looks at volume and calculates the difference (Positive/negative) from the previous volume bar and converts that to a percentage. These 2 factors are summed together to give a percentage number (positive or negative) then highlights the positive value. Bullish volume and price action turn to gold.

I use this for scalping to great effect. Enjoy.
版本注释
I've updated the script so that the difference value is plotted above the bar high. Useful for making a quick assessment of the power of the move.
版本注释
Now there is a new way to set a threshold and add a custom color. You can also set the threshold amount which is calculated based on the difference in values from the previous bar. hopefully this makes it obvious to see price and volume working together.
版本注释
And finally, An alert has been added so when the wick exceeds 66% of the bar and the threshold has been exceeded an alert is triggered.
版本注释
There was an issue with the alerts so i have removed them for now. However the script has been updated with more confirmation. Now you have the option to scan a higher timeframe and check if the lows have been taken out. This will change the bar color as long at the threshold for price action has been met (price above the center of gravity + increasing volume). You can manually set how many lows of previous bars it takes out and the timeframe manually. More updates will be coming.
版本注释
Alert re-added. Triggered on 2 conditions. 1) The consecutive lows taken out as defined in the settings. 2) Exceeding the price action threshold value in settings to confirm price+volume.
版本注释
Code fix.
版本注释
You can now set a separate color for negative price action. This happens when the volume is increasing and the price is below the center of gravity (midpoint of the bar). The bars change color when the previous conditions are met + the lows defined in settings have also been met on the timeframe you set.
版本注释
We now have the option to set custom values to scan the higher timeframes and check if the consecutive highs or lows have been taken out. Then it changes the color of the bar when the defined threshold has been exceeded. The Alert has been updated.
版本注释
Code fixed + New options to color the high bars and low bars. Option to turn them on or off.
版本注释
The script has been updated again! I have included RSI bar colors with custom settings. Now you have real-time Price+Volume+RSI to help you on your trading journey. The key to this is finding a threshold that matches the chart and tweaking those values to suit. You can set alerts for when the lows or highs are taken out on liquidity grabs and look to enter when the threshold is increasing and price is moving in your direction.
版本注释
Small code changes
Trend AnalysisVolume

开源脚本

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

想在图表上使用此脚本?

免责声明