# reverse this indicator for bearish

#### CLICKANDGRAB808

##### New member
looking to see if someone can help me reverse this indicator for bearish with correct candle name and such

def MovingAvg = 52;
def Avg = SimpleMovingAvg(Close, MovingAvg);
def CandleBody = AbsValue(open - close);
def UpperWick = high - Max(open, close);
def LowerWick = Min(open, close) – low;
def Hammer = Lowerwick > CandleBody * 2 And Upperwick <= Lowerwick * 0.2 and Low < Low[1] and Low < Low[2] and Low < Low[3] and Low < Low[4] and Low < Low[5] and Low < Low[6] and Low < Low[7] and Low < Low[8] and Close > Avg;
Plot BullButterfly = Hammer; BullButterfly.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); BullButterfly.SetDefaultColor(GetColor(4));
BullButterfly.SetLineWeight(2);

Hammer is a bullish-only candlestick pattern

Hammer is a bullish-only candlestick pattern

Yeah I need it bearish not sure if it's called shooting star or harami candle

Code:
``````def MovingAvg = 20;
def Avg = SimpleMovingAvg(Close, MovingAvg);
def CandleBody = AbsValue(open - close);
def UpperWick = high - Max(open, close);
def LowerWick = Min(open, close) – low;

def Hammer = Lowerwick > CandleBody * 2 And Upperwick <= Lowerwick * 0.2 and Low < Low[1] and Low < Low[2] and Low < Low[3] and Low < Low[4] and Low < Low[5] and Low < Low[6] and Low < Low[7] and Low < Low[8] and Close > Avg;

Plot BullButterfly = Hammer; BullButterfly.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); BullButterfly.SetDefaultColor(GetColor(4));
BullButterfly.SetLineWeight(2);

def InvertedHammer = UpperWick > CandleBody * 2 And LowerWick <= UpperWick * 0.2 and high > high[1] and high > high[2] and high > high[3] and high > high[4] and high > high[5] and high > high[6] and high > high[7] and high > high[8] and Close < Avg;

Plot BearButterfly = InvertedHammer; BearButterfly.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); BearButterfly.SetDefaultColor(GetColor(4));
BearButterfly.SetLineWeight(2);``````

87k+ Posts
284 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?