OPEN-SOURCE SCRIPT

Center of gravity - Mid Point + Volume (PolySlyme)

Cập nhật
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
Code fix.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
Code fixed + New options to color the high bars and low bars. Option to turn them on or off.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
Small code changes
Trend AnalysisVolume

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm