Professional Documents
Culture Documents
Wolfe Wave
Wolfe Wave
0 at
https://mozilla.org/MPL/2.0/
// © TradeChartist
//@version=4
study("Fib Retracement", overlay=true, max_bars_back=5000)
Fib_x(n) =>
revfibs ? (Fhigh-Flow)*n+Flow : Fhigh-(Fhigh-Flow)*n
Current = revfibs?(close-Flow)/(Fhigh-Flow):(Fhigh-close)/(Fhigh-Flow)
EXTEND = Ext?extend.left:extend.none
STYLE = LineStyle=="Dotted"?line.style_dotted:line.style_solid
WIDTH = LineWidth
BB = FIBS==1?(FL<FH?bar_index[-FL]:bar_index[-FH]):FIBS==2?
bar_index[50]:bar_index[50]
Fib_line(x) =>
var line ln = na
line.delete(ln)
ln:=line.new(BB, x, bar_index, x, color = close>x? BullColor:BearColor,
extend=EXTEND ,style=STYLE, width = WIDTH)
Fib_label(x,_txt) =>
var label lbl = na
label.delete(lbl)
lbl:=label.new(bar_index, x, _txt + tostring(x, "##.########") + " )",
textcolor = close>x?BullColor:BearColor, color = color.new(#000000,100),
style=label.style_label_left, yloc=yloc.price)
Fib0 = Fib_line(Fib_x(0))
Fib236 = Fib_line(Fib_x(0.236))
Fib382 = Fib_line(Fib_x(0.382))
Fib500 = Fib_line(Fib_x(0.500))
Fib618 = Fib_line(Fib_x(0.618))
Fib786 = Fib_line(Fib_x(0.786))
Fib1000 = Fib_line(Fib_x(1.000))
Fib886 = ExtraFibs?Fib_line(Fib_x(0.886)):na
if(FIBS==2)
Fib1113 = ExtraFibs?Fib_line(Fib_x(1.113)):na
Fib1272 = Fib_line(Fib_x(1.272))
Fib1618 = Fib_line(Fib_x(1.618))
Fib2000 = Fib_line(Fib_x(2.000))
Fib2236 = Fib_line(Fib_x(2.236))
Fib2618 = Fib_line(Fib_x(2.618))
Fib3236 = Fib_line(Fib_x(3.236))
Fib3618 = Fib_line(Fib_x(3.618))
Fib4236 = Fib_line(Fib_x(4.236))
Fib4618 = Fib_line(Fib_x(4.618))
if(FIBS==2)