What it does
Trend Pullback Planner turns the classic "buy the dip in an uptrend" plan into drawn levels. A trend exists when the fast EMA is above (below) the slow EMA and has been rising (falling) for Slope Check bars. A pullback is armed when price touches a zone of Touch Buffer × ATR around the fast EMA without closing beyond the slow EMA, and triggers when the close comes back through the fast EMA in the trend's direction; with the filters on, RSI must also cross back over 50 and ADX must be above its minimum. Each trigger gets a grade from A to C, a stop beyond the recent swing padded by Stop Padding × ATR, and two targets expressed in R. The study follows one trade at a time to the stop or the targets and keeps the results in a stats table.
How to add it
Click Indicators (ƒx) in the header.
Search “Trend Pullback Planner” and click the result.
Hover its legend row and click the gear to open settings.
How traders use it
- Take the trigger, not the touch: enter when the close comes back through the fast EMA after a pullback in an established trend, with the stop and both R targets the study draws.
- Grade A triggers (trend, RSI, ADX and the higher timeframe all agreeing) are the ones to size up; treat C grades as watch-only or half size.
- Scale out at Target 1 (1R by default) and let the rest run to Target 2 (2R); the stats table tells you whether that split suits the instrument.
- Keep "Only trade when ADX is above the minimum" on for sideways stocks; turn it off on strongly trending index futures where ADX stays elevated anyway.
- Use the weekly higher timeframe on daily charts of NSE stocks so pullbacks are only bought while the weekly trend agrees.
- A pullback that closes beyond the slow EMA disarms the setup: that is a trend change, not a dip.
Inputs
| Input | Type | Default | Range / Options |
|---|---|---|---|
| Fast EMA | number | 20 | ≥ 2 |
| Slow EMA | number | 50 | ≥ 3 |
| Slope Check (bars) | number | 5 | ≥ 1 |
| ATR Length | number | 14 | ≥ 2 |
| Touch Buffer (x ATR) | number | 0.25 | ≥ 0, step 0.05 |
| RSI Length | number | 14 | ≥ 2 |
| Need RSI back across 50 | boolean | true | on / off |
| Stop Swing Lookback | number | 8 | ≥ 2 |
| Stop Padding (x ATR) | number | 0.3 | ≥ 0, step 0.05 |
| Target 1 (R) | number | 1.0 | ≥ 0.5, step 0.25 |
| Target 2 (R) | number | 2.0 | ≥ 1, step 0.25 |
| ADX Length | number | 14 | ≥ 2 |
| Minimum ADX | number | 22 | ≥ 5 |
| Only trade when ADX is above the minimum | boolean | true | on / off |
| Score higher timeframe trend | boolean | true | on / off |
| Higher Timeframe | select | 1 week | Chart, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 1 day, 1 week, 1 month |
| Show EMAs | boolean | true | on / off |
| Draw Stop and Targets | boolean | true | on / off |
| Show Stats Table | boolean | true | on / off |
Plots & styling
| Plot | Style | Default color |
|---|---|---|
| Fast EMA | line | #00BCD4 |
| Slow EMA | line (width 2) | #FF9800 |
| Buy triggers, long stop and targets | label and lines | #4CAF50 (grade A: #00E676) |
| Sell triggers, short stop and targets | label and lines | #F23645 |
| Stats table | table | #311B92 header, #787B86 text |
Every plot's color, line width and visibility can be changed on the Style tab. Precision, price-scale labels and status-line values are configurable at the bottom of the Style tab.
Tips
- Use Add to favorites in the legend menu; starred studies surface at the top of the picker.
- Reference levels (where the study has them) are editable — tune them to the instrument you're trading.
- Hide the study from the legend eye instead of removing it when you only want it out of the way temporarily.
Watch out for
- The trigger needs a close through the fast EMA, so the entry is always a bar after the low of the pullback; on volatile stocks the first target can be most of the move already.
- The stop is the recent swing plus padding: in a choppy pullback that swing can sit far away and make the R targets large in rupee terms, so check the actual distance before sizing.
- One trade at a time is followed for the table; a second trigger while a trade is open is drawn but not counted, so the statistics understate how often signals cluster.