R2D2B2C2

Fibonacci Waves

First of all, ignore all other lines in the example chart except the four FAT lines. The four fat lines are the ones that define the fibonacci price leves. The lines have different extension offset to the right. The shortest one is the end of the second wave ( or leg B ), the next one is the end of C, the one following that is the end of D and the final one is the end of the final leg E.

The two input parameters is the start of A and the end of A.

If the start of A is larger than then end of A, the calculated series is a downward trend, else it is an upward trend.

Calculation based on old EWT simple wave expansion by fibonacci sequence.
0.618, 1.618, 0.382

Based on this source:
www.ino.com/blog/201...candlesticks-part-2/

Best Regards,
/Hull, 2015.05.20.15:50 ( placera.se )
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
study(title="Fibonacci Waves", shorttitle="Fibw", overlay=true)

Astart = input(title="A leg start", type=float, defval=0.0, minval=0.0)
Aend = input(title="A leg end", type=float, defval=0.0, minval=0.0)

// simple function with two args
fib1618(x) => x*1.618
fib0618(x) => x*0.618
fib0382(x) => x*0.382

A = Aend
B = fib0618(Astart - Aend) + A 
C = B - fib1618(Astart - Aend) 
D = C - fib0382(C - B)
E = D - Astart + Aend

plot(B,title='B wave end', color=green,linewidth=2,offset=15) 
plot(C,title='C wave end', color=blue,linewidth=2,offset=30) 
plot(D,title='D wave end', color=purple,linewidth=2,offset=45) 
plot(E,title='E wave end', color=red,linewidth=2,offset=60)