OPEN-SOURCE SCRIPT

Timeweighted Colored VWAP with Slope

已更新
Hey, traders!

This script calculates the VWAP's change rate against ATR in a number of k-lines. It controls the VWAP line's color based on the average change rate, and it changes its color in a time-weighted way.

1. Calculating vwapValue's rate of change

2. Controlling Line's color based on the average change rate against ATR

3. Calculating average change rate in the past k-lines

K线的数量:计算多少根K线的VWAP值的变化率的平均值,相当于用K线的数量来时间加权
变化率阈值:线条颜色变化的阈值,VWAP值的变化率比这个大或者小时改变颜色,否则延续原来的颜色

Good luck with your trading!
版本注释
1. moving to left two k-lines: offset = -2
2. set default k_num equals 1
3. set default change_rate_threshold to 0.3, it works perfect fot Bitcoin in 15min chart!
版本注释
Controlling Line's color based on the average change rate against Vegas
ATRcolortimeframeTrend AnalysisVolatilityVolume IndicatorVolumeVolume Weighted Average Price (VWAP)

开源脚本

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

想在图表上使用此脚本?

免责声明