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

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?
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