You are on page 1of 1

//@version=3

study("PIVOT WICK REVERSAL SETUP BY SWAPNIL TAMBE", overlay=true)

wick_multiplier = input(title="Wick Multiplier", type=float, defval=2.5)


close_thresh = input(title="Close Value Percent", type=float, defval=0.35,
minval=0.0, maxval=1.0)

// basic candle computations


top_body = max(close, open)
bot_body = min(close, open)
top_wick_size = high - top_body
body_size = top_body - bot_body
bot_wick_size = bot_body - low
range = high - low

bull_signal = (bot_wick_size > (wick_multiplier*body_size)) and (close > (low +


(range*(1-close_thresh))))
bear_signal = (top_wick_size > (wick_multiplier*body_size)) and (close < (low +
(range*close_thresh)))

plotshape(bull_signal, "Bullish Wick Reversal", style=shape.triangleup,


location=location.belowbar, color=green, size=size.tiny)
plotshape(bear_signal, "Bearish Wick Reversal", style=shape.triangledown,
location=location.abovebar, color=red, size=size.tiny)

You might also like