lonestar108

PhiMACD

Here is a modified moving average which uses phi as the scaling interval between moving average periods. Each MACD line is derived by determining EMAs for 8 period frames, each of which is related to the other proportionally by phi, and calculating each line by comparing it against its immediate predecessor. Actual period values are 9 15 24 39 63 102 165 and 267

开源脚本

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

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
study(title="Fibonacci Moving Average", shorttitle="FibMA", overlay=false)
ema1 = close, len = input(9, minval=1, title="Length")
out1 = ema(ema1, len) 
ema2 = close, len2 = input(15, minval=1, title="Length")
out2 = ema(ema2, len2) 
ema3 = close, len3 = input(24, minval=1, title="Length")
out3 = ema(ema3, len3)
ema4 = close, len4 = input(39, minval=1, title="Length")
out4 = ema(ema4, len4)
ema5 = close, len5 = input(63, minval=1, title="Length")
out5 = ema(ema5, len5)
ema6 = close, len6 = input(102, minval=1, title="Length")
out6 = ema(ema6, len6)
ema7 = close, len7 = input(165, minval=1, title="Length")
out7 = ema(ema7, len7)
ema8 = close, len8 = input(267, minval=1, title="Length")
out8 = ema(ema8, len8)


plot((out7-out8)/2, title="EMA", color=#6DE807, style=line, linewidth=2,transp=65)
plot((out6-out7)/2, title="EMA", color=#33FFFB, style=line, linewidth=2,transp=65)
plot((out5-out6)/2, title="EMA", color=#20C1FF, style=line, linewidth=2,transp=65)
plot((out4-out5)/2, title="EMA", color=#640CE8, style=line, linewidth=2,transp=65)
plot((out3-out4)/2, title="EMA", color=#FF0000, style=line, linewidth=2,transp=65)
plot((out2-out3)/2, title="EMA", color=#E8910C, style=line, linewidth=2,transp=65)
plot((out1-out2)/2, title="EMA", color=#E87470, style=line, linewidth=2, transp=65)
// 
// 
// E87470
// AF8BFF