搜索
产品
社区
市场
新闻
经纪商
更多
CN
开始
社区
/
脚本
/
Fractal Levels with AVWAP and MACD
OPEN-SOURCE SCRIPT
Fractal Levels with AVWAP and MACD
由bhatim8提供
关注
关注
3小时前
1
添加到收藏
添加到收藏
3小时前
//
version
=5
indicator("Fractal Levels with AVWAP and MACD", overlay=true)
// Fractal Levels
length = input(2, title="Fractal Length")
fractalHigh = high[length] == ta.highest(high, length * 2 + 1) ? high[length] : na
fractalLow = low[length] == ta.lowest(low, length * 2 + 1) ? low[length] : na
plot(fractalHigh, title="Fractal High", color=color.red, style=plot.style_circles, linewidth=3)
plot(fractalLow, title="Fractal Low", color=color.green, style=plot.style_circles, linewidth=3)
// AVWAP Calculation
var float avwap = na
if bar_index == 0
avwap := na
else
avwap := na(avwap) ? ta.vwap(close, volume) : avwap + (close * volume - avwap * volume) / (volume + volume)
// Plotting AVWAP
plot(avwap, color=color.blue, title="AVWAP")
// MACD Calculation
[macdLine, signalLine, macdHist] = ta.macd(close, 12, 26, 9)
hline(0, "Zero Line", color=color.gray)
plot(macdHist, color=color.blue, title="MACD Histogram", style=plot.style_histogram)
plot(macdLine, color=color.red, title="MACD Line")
plot(signalLine, color=color.green, title="Signal Line")
Candlestick analysis
Fractal
Trend Analysis
开源脚本
本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受
网站规则
约束。 您可以收藏它以在图表上使用。
想在图表上使用此脚本?
添加到收藏
bhatim8
关注
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在
使用条款
阅读更多信息。