# Dead Simple Reversal Indicator for ThinkorSwim

#### BenTen

Staff member
Staff
VIP
This indicator finds possible points of reversion, you can use it to stack positions and get a good average price for when the price changes direction, it is the trader responsibility to manage the position and make a profit.

### thinkScript Code

Code:
``````# Dead Simple Reversal Points
# Assembled by BenTen at useThinkScript.com

# Define Conditions
def c1 = close[1] < open[1] and close > open;
def c2 = close > open[1];
def c3 = lowest(low, 3) < lowest(low, 50)[1] or lowest(low,3) < lowest(low,50)[2] or lowest(low,3) < lowest(low,50)[3];
def buy = c1 and c2 and c3;
def c4 = close[1] > open[1] and close<open;
def c5 = close<open[1];
def c6 = highest(high, 3) > highest(high, 50)[1] or highest(high,3) > highest(high,50)[2] or highest(high,3) > highest(high,50)[3];
def sell = c4 and c5 and c6;

# Plot Signals
bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
bullish.SetDefaultColor(Color.CYAN);
bullish.SetLineWeight(1);
plot bearish = sell;
bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
bearish.SetDefaultColor(Color.CYAN);
bearish.SetLineWeight(1);``````

#### HighBredCloud

##### Well-known member
@BenTen are these arrows delayed in anyway like the TTM Scalper or realtime?

#### BenTen

Staff member
Staff
VIP

##### Member
@BenTen , kinda looks like your AMM Indicator

##### New member
@BenTen , thanks for the code.

I was wondering if the code can modified for use with moving average values instead of bar high or bar low.

Since this strategy has an averaging component, we want to average only the lowest MA values for buys and highest MA values for sells.

#### Tiredoflosing

##### Member
Hi everyone,

I hope this thread finds you all well and in good health.

I came across this reversal indicator, so I thought I would share and give my back to the community. Currently, I'm trying to find something that can cut down some of the fake signals. I do like to trade reversals just an FYI. (Blue Arrows in this case)

Potential ideas for cleaning up false signals:
1. Long signals only above VWAP & shorts only below VWAP ( testing this right now, so far doesn't look too promising)
2. Use other indicators to confirm signals ( wavetrend, BTD..etc)

Things I noticed:
1. In a hard uptrend/downtrend, most of the signals will fail due to momentum being so high but small losses.
2. The winners can be quiet large.
3. The 800 tick on ES was interesting to me.
4. the author didn't mean for the script to be used like I am for scalps ( you can look at the link in the code)
5. When WaveTrend and Dead Reversal are signaling on the same bar, its usually a high probability trade.
6. Doesn't repaint to my knowledge.

Lastly,

This Is not my script, nor do i claim it to be. Credit to whoever is the rightful owner! I hope you all are staying positive & testing negative. ( Cheesey Corona Virus Joke)

Best,

TiredOfLosing

Code:
``````# Dead Simple Reversal Points

input shortTerm = 3;
input longTerm = 50;

# Define Conditions
def c1 = close[1] < open[1] and close > open;
def c2 = close > open[1];
def c3 = lowest(low, shortTerm) < lowest(low, longTerm)[1] or lowest(low, shortTerm) < lowest(low, longTerm)[2] or lowest(low, shortTerm) < lowest(low, longTerm)[3];
def buy = c1 and c2 and c3;
def c4 = close[1] > open[1] and close < open;
def c5 = close<open[1];
def c6 = highest(high, shortTerm) > highest(high, longTerm)[1] or highest(high, shortTerm) > highest(high, longTerm)[2] or highest(high, shortTerm) > highest(high, longTerm)[3];
def sell = c4 and c5 and c6;

#plot debug = sell;

# Plot Signals
bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
bullish.SetDefaultColor(Color.CYAN);
bullish.SetLineWeight(1);
plot bearish = sell;
bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
bearish.SetDefaultColor(Color.CYAN);
bearish.SetLineWeight(1);``````

Heres the link to the grid. On the grid you will find Wavetrend as well: https://tos.mx/MtWNoqF

Last edited by a moderator:

#### HighBredCloud

##### Well-known member
@Tiredoflosing interesting indicator...BTW...can you post WaveTrend separately...I don't see it being included in the link.

## 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?