plot retracement_bull = if close > open and
close > low + (.67 * (high - low))
then 1 else 0;
retracement_bull.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
plot retracement_bear = if close < open and
close < high - (.67 * (high - low))
then 1 else 0;
retracement_bear.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
##Testing Bull Code
input testing = yes;
plot retrace_bull = if close > open
then low + (.67 * (high - low))
else Double.NaN;
retrace_bull.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
retrace_bull.SetDefaultColor(Color.WHITE);
retrace_bull.SetLineWeight(3);
retrace_bull.SetHiding(!testing);
AddChartBubble(testing, high + .10, close + "\n" + (high - (.67 * (high - low))), Color.YELLOW);
##Testing Bear Code
plot retrace_bear = if close < open
then high - (.67 * (high - low))
else Double.NaN;
retrace_bear.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
retrace_bear.SetDefaultColor(Color.WHITE);
retrace_bear.SetLineWeight(3);
retrace_bear.SetHiding(!testing);
AddChartBubble(testing, low - .10, close + "\n" + (high - (.67 * (high - low))), Color.YELLOW, no);
;