Aggressive Pullback Indicator

This simple pullback indicator was created for Steven Hart’s Aggressive Pullback Strategy. It was one of the first scripts I ever made, and for a long time it was a trading tool I used every single day in conjunction with my ATR Stop Loss indicator.

It sends you pullback alerts and draws your stops and targets for you which makes backtesting and trade execution a lot faster.

This is an extremely powerful strategy when used with the right rules. I will not divulge my trading strategy rules here as they are too long and too valuable to share for free.

But if you are an experienced trader who has traded rules-based systematic trading strategies before then I have no doubt that you will be able to come up with profitable rules to trade these signals. If you need help coming up with ideas or understanding the process behind rules-based strategy development then I encourage you to check out my trading mentor’s education course The EAP Program.

If you like this basic pullback indicator then you may want to try out my updated and advanced version of this script which I currently use to trade the forex markets – The Ultimate Pullback Indicator.

How It Works

I will detail the basics as best I can, but if you want to learn the specific rules that I personally use with this indicator then you can sign up to my mentor Steven Hart’s EAP training program at

When price is above the 50-EMA (Exponential Moving Average), the script begins looking for Long signals. When price is below the 50-EMA, the script begins looking for Short signals.

The trading signals are generated by engulfing candles.

For Long trades price must be above the 50-EMA then pull back at least 2 candles before putting in a bullish engulfing candle.

For Short trades price must be below the 50-EMA then pull back at least 2 candles before putting in a bearish engulfing candle.

The Stop Loss is set as 1ATR above/below swing high/lows (from the candle close). The Take Profit is 1ATR above/below the entry price (by default).

Some of these settings can be adjusted if you want to test variations of these parameters.


EMA Length:
You can adjust the length of the Exponential Moving Average with this setting.

Stop Distance (ATR):
This value is treated as an ATR multiplier.

Reward To Risk Ratio (Stop Loss x ?):
This setting will determine your profit-target distance. It is calculated based on your stop loss, so if you have a 20 pip stop loss and this is set to 3, then your take profit price will be drawn 60 pips above your entry candle.

Pine Script Basics Course
Pine Script Mastery Course

Source Code

Converted to Pine Script version 4 and optimized code

Last Updated: 2nd October, 2020

Free Premium Charts!

5 1 vote
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Kerry Reinsel
Kerry Reinsel
9 months ago

Will your source code for PullBacks work on TOS platform? And for stocks, etf’s?