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)