How to Use the 9 EMA to Ride Trends and Trail Stops

The 9 EMA is a 9-period exponential moving average, a fast line that hugs price during strong trends. Traders use it to stay in a trending trade instead of exiting at the first wiggle, and to trail a stop as the move develops.
What Makes an EMA Different
A simple moving average weights every bar in its period equally. An exponential moving average gives more weight to the most recent bars, so it turns faster when price changes direction.
Exponential Moving Average
EMA = (Close − Previous EMA) × k + Previous EMA, where k = 2 ÷ (N + 1)
For a 9 EMA, k = 2 ÷ 10 = 0.2. If the previous EMA is 100 and the new close is 105, the new EMA = (105 − 100) × 0.2 + 100 = 101.
With a period of nine, the line is dominated by recent trading. On a 5-minute chart, that’s roughly the last 45 minutes, which makes the 9 EMA a read on short-term momentum rather than the bigger trend.
Adding it is simple: choose an exponential moving average study, set the length to 9 and the price to close. In thinkorswim the study is called MovAvgExponential; in TradingView it’s Moving Average Exponential.
Using the 9 EMA to Ride a Trend
On a strong trend day, price often pulls back to the 9 EMA, holds it and pushes to a new high (or a new low in a downtrend). As long as that pattern repeats, the trend is intact.
That gives you a simple rule for holding: stay in while price keeps closing on the right side of the 9 EMA, and consider exiting when it closes clearly through it. The rule helps with two common mistakes, selling a good trade too early and holding a broken one too long.
Illustration only. Pullbacks hold the rising 9 EMA until a clear close below it signals the push is over.
A Simple 9 EMA Trailing Plan
Enter From Your Setup
Take the entry from a defined setup, such as a break and retest or a bull flag, with an initial stop at a structural level.
Let the Trade Develop
Once price is moving and the 9 EMA slopes your way, use the line as your guide instead of reacting to every candle.
Trail With Closes
Exit, or take partial profits, when a candle closes clearly on the other side of the 9 EMA. Using closes instead of touches avoids getting shaken out by wicks.
Respect Your Targets
If price reaches a major key level or your target first, it’s fine to take profits there even though the 9 EMA hasn’t broken.
Match the timeframe to the trade. A 5-minute 9 EMA trails a day trade tightly, while a daily 9 EMA trails a swing trade that might last days or weeks.
When the 9 EMA Doesn’t Work
The 9 EMA is a trend tool. On a choppy, range-bound day, price crosses it constantly, and a close-below rule will stop you out over and over.
- Flat 9 EMA with price weaving through it: there’s no trend. Step back or switch to range levels.
- The first pullback after a big, extended move: price may overshoot the 9 EMA and test a slower line like VWAP or the 20 EMA instead.
- A trend on fading volume: it can roll over without a clean signal, so watch volume as well.
Combining It With Volume and Levels
The 9 EMA works best as one piece of a plan. A pullback to the 9 EMA that also holds above VWAP, on lighter volume, near a support level is a much better setup than the line alone.
It works the same way on the short side. In one past S&P 500 futures (ES) example, price stayed under a falling 9 EMA, formed a bear flag and broke a marked key level, with volume confirming the move.
Illustration of the pattern, not real futures data. Price stays under the falling 9 EMA, flags on light volume, then breaks the level as volume returns.
Educational content only, not financial advice. Trading involves risk, and examples are illustrations, not recommendations.



