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

Mã nguồn mở

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

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

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
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

Nhắc đến