TheYangGuizi

Auto Fib

Took the code from LazyBears rsi-fib and made it so you could apply it to a chart. It plots fib levels between the high and low of a timeframe of your choosing. Seems to line up well with custom drawn fib levels.

Not sure if it's any better than just drawing the lines yourself, but whatever.
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title="FibFib", shorttitle="AutoFib", overlay=true)
fiblength=input(265)
maxr = highest(close, fiblength)
minr = lowest(close, fiblength)
ranr = maxr - minr

ON=plot( maxr , color=black,  title="1")
SS=plot( maxr - 0.236 * ranr, title="0.764", color=#3399FF )
SO=plot( maxr - 0.382 * ranr, title="0.618", color=blue )
FI=plot( maxr - 0.50 * ranr, title="0.5", color=lime )
TE=plot( minr + 0.382 * ranr, title="0.382", color=green )
TT=plot( minr + 0.236 * ranr, title="0.236", color=red )
ZZ=plot( minr , title="0", color=black )

fill(ON,SS, color=red)
fill(SS,SO, color=#3399FF)
fill(SO,FI, color=lime)
fill(FI,TE, color=lime)
fill(TE,TT, color=#3399FF)
fill(TT,ZZ, color=red)