One window instead of four
Most traders who use RSI end up stacking things around it: a moving average to smooth it, Bollinger Bands to judge whether a reading is extreme, a second timeframe to confirm the trend. The Traders Dynamic Index (TDI), created by Dean Malone, does all of that inside a single sub-window. It is one of the most downloaded free indicators for MetaTrader, and it has a reputation for being confusing because it draws five lines at once.
Once you know what each line is, the TDI becomes simple to read: one line tells you the trend, two lines time your entry, and two lines tell you whether the move is stretched. This guide explains how it is built, gives a complete rule set for trading trend pullbacks with it, adds a counter-trend "shark fin" setup, walks through a worked trade, and lays out the logic for an Expert Advisor.

How the TDI is built
Everything in the TDI comes from a single RSI. That matters, because it means the lines confirm each other rather than adding independent information.
| Line | Colour | Calculation (default) | What it tells you |
|---|---|---|---|
| RSI | not drawn | RSI(13) on close | The raw momentum series everything else uses |
| Price Line | Green | 2-period SMA of the RSI | Fast momentum, your trigger |
| Trade Signal Line | Red | 7-period SMA of the RSI | Short-term momentum direction |
| Market Base Line | Yellow | 34-period SMA of the RSI | The trend. Above 50 is bullish, below 50 bearish |
| Volatility Bands | Blue | Market Base Line ± 1.6185 standard deviations of the RSI over 34 periods | How stretched momentum is, and whether volatility is expanding or contracting |
The defaults above (RSI 13, bands 34, multiplier 1.6185, price line 2, signal line 7) are the ones in the widely distributed MetaTrader version (EarnForex, LuxAlgo). You will find other settings online, such as an RSI of 10, but pick one set and keep it fixed. The patterns only mean something if the inputs never change.
In plain formulas:
RSI = RSI(Close, 13)
PriceLine = SMA(RSI, 2)
SignalLine = SMA(RSI, 7)
BaseLine = SMA(RSI, 34)
UpperBand = BaseLine + 1.6185 × StdDev(RSI, 34)
LowerBand = BaseLine − 1.6185 × StdDev(RSI, 34)Two reference levels sit on the same scale. 50 splits bullish from bearish. 68 and 32 are commonly used as the overbought and oversold zones on the TDI.
What the evidence says
There is no published academic test of the TDI itself, and it would be misleading to claim one. What the research does say is useful for deciding how to trade it.
- Technical analysis is widely used in FX, especially at short horizons. Menkhoff and Taylor's survey of the literature found that foreign exchange professionals rely heavily on technical analysis and that it can be profitable, most plausibly because it captures non-fundamental forces such as order flow and positioning (Journal of Economic Literature, 2007).
- Simple rules stop working once everyone uses them. Neely, Weller and Ulrich showed that profits from basic filter and moving average rules in currencies were real in the 1970s and 1980s but had disappeared by the early 1990s (Federal Reserve Bank of St. Louis working paper, published in JFQA 2009).
The practical lesson: a bare "green crosses red" signal is the kind of simple rule that has been arbitraged away. The rules below therefore never trade the cross alone. They require the trend on a higher timeframe, a pullback to the base line, and enough volatility for the move to pay. Treat every number in this article as a starting point to backtest, not a promise.
Reading the five lines
- Trend: the yellow Base Line. Above 50 and rising, look for buys only. Below 50 and falling, sells only. Flat around 50, no trend trades.
- Timing: the green Price Line crossing the red Signal Line. In an uptrend you want the green line to dip, then cross back up through the red.
- Location: where that cross happens. Malone's own guidance was to enter as close to the yellow line as possible. A cross right next to the base line is a pullback in a trend. A cross near the upper band is chasing.
- Stretch: the blue bands. Green outside the upper band means momentum is overextended. Very narrow bands mean low volatility, and signals inside them tend to go nowhere.
- Exhaustion: a sharp spike of the green line outside a band that snaps straight back inside, called a shark fin.

The strategy: TDI trend pullback
Markets and timeframes. EUR/USD, GBP/USD, USD/JPY and XAU/USD. Filter on H4, entries on H1. Malone considered H1 and H4 the best timeframes for the indicator. Trade only between the London open and the New York close (07:00–21:00 GMT) to avoid thin Asian-session signals on European pairs.
Rules for a buy. For a sell, mirror every condition.
- H4 trend filter. On the H4 TDI, the yellow Base Line is above 50 and higher than it was 3 bars ago.
- H1 trend. On the H1 TDI, the yellow Base Line is also above 50.
- Pullback. Within the last 6 H1 bars, the green Price Line has come down to within 3 points of the yellow Base Line, or touched it.
- Trigger. On the just-closed H1 bar, the green line crosses above the red line, and both green and red are above the yellow line.
- Not stretched. At the cross, the green line is below 68 and below the upper blue band.
- Enough volatility. The distance between the blue bands is at least 12 RSI points. Narrower than that, skip the signal.
- Entry. Buy at the open of the next H1 bar.
- Stop loss. A few pips below the most recent H1 swing low (a 5-bar fractal), and never closer than 1 × ATR(14) on H1.
- Take profit. Close half at 1.5R and move the stop to breakeven. Exit the rest when an H1 bar closes with the green line below the yellow line, or at 3R, whichever comes first.
Do not trade when:
- The green line is already outside the upper band at the cross.
- A high-impact release (NFP, CPI, central bank decision) is due within the next 2 hours.
- The H4 Base Line is within 2 points of 50 (no clear trend).
Risk. Risk 0.5–1% of the account per trade, one open position per symbol.

Setup B: the shark fin reversal
The pullback setup trades with the trend. The shark fin is the counter-trend alternative and should be traded with smaller size.
- The green line spikes above the upper band and above 68 (for a sell) or below the lower band and below 32 (for a buy).
- Within 1–2 bars, it closes back inside the band.
- Price is at a clear higher-timeframe level: the previous day's high or low, or a round number.
- Ideally, price makes a higher high while the green line makes a lower high (bearish divergence).
- Enter on the next bar. Stop beyond the spike's high or low. Target the yellow Base Line's equivalent move back toward the mean, or a fixed 1.5R.
Use half your normal risk on shark fins. Strong trends can ride the outer band for many bars, and a fin in a strong trend is often just a pause.
Worked example: GBP/USD trend pullback
The values below are illustrative round numbers chosen to show the rules and the arithmetic, not a record of a real trade.
| Step | Reading | Value |
|---|---|---|
| H4 filter | Base Line above 50 and rising | 56 |
| H1 trend | Base Line above 50 | 52.5 |
| Pullback | Green line fell from 66 to touch the yellow line | 53 |
| Trigger | Green crosses above red, both above yellow | Green 58, Red 56 |
| Not stretched | Green below 68 and below the upper band | Upper band 61 |
| Volatility | Band width (61 − 44) | 17 points |
| Entry | Next H1 open | 1.2768 |
| Stop loss | 2 pips below the swing low at 1.2741 (29 pips, above 1 × ATR of 18 pips) | 1.2739 |
| TP1 | 1.5R, close half, stop to breakeven | 1.2812 (+44 pips) |
| Final exit | Green closes below yellow | 1.2833 (+65 pips) |
Position size. On a $10,000 account risking 1% ($100), with a 29-pip stop and about $10 per pip per standard lot:
Lots = Risk in money / (Stop in pips × Pip value per lot)
= 100 / (29 × 10)
= 0.345 → round down to 0.34 lotsThat rounds the actual risk to $98.60.
Outcome. 0.17 lots closed at TP1 for +$74.80. The remaining 0.17 lots, protected at breakeven, exit at 1.2833 for +$110.50. Total +$185.30, about 1.9R. If price had reversed after TP1, the trade would still have closed at +$74.80.
Automating it: the EA logic
MetaTrader has no built-in TDI, but every line is a moving average or standard deviation of iRSI, so it takes a few lines of code. Calculate on closed bars only (shift 1 and older) so the signal never repaints.
ON NEW H1 BAR:
rsi[] = iRSI(Symbol, H1, 13, PRICE_CLOSE) // copy at least 50 values
green[i] = SMA(rsi, 2, i)
red[i] = SMA(rsi, 7, i)
yellow[i] = SMA(rsi, 34, i)
sd[i] = StdDev(rsi, 34, i)
upper[i] = yellow[i] + 1.6185 * sd[i]
lower[i] = yellow[i] - 1.6185 * sd[i]
h4Yellow = SMA(iRSI(Symbol, H4, 13), 34) at bars 1 and 4
// BUY conditions (mirror for SELL)
trendOK = h4Yellow[1] > 50 and h4Yellow[1] > h4Yellow[4] and yellow[1] > 50
pullbackOK = any of bars 1..6 has green <= yellow + 3
crossOK = green[2] <= red[2] and green[1] > red[1]
and green[1] > yellow[1] and red[1] > yellow[1]
stretchOK = green[1] < 68 and green[1] < upper[1]
volOK = (upper[1] - lower[1]) >= 12
timeOK = 07:00 <= GMT time < 21:00 and no high-impact news within 2 hours
if all OK and no open position on Symbol:
sl = lastSwingLow(5-bar fractal) - buffer
sl = min(sl, Ask - ATR(14))
lots = RiskPercent * Balance / (stop distance * value per pip)
BUY lots at market with sl, TP1 = entry + 1.5 * (entry - sl)
ON EACH NEW H1 BAR WHILE IN A TRADE:
if TP1 reached and not yet scaled: close 50%, move SL to entry
if green[1] < yellow[1] or price >= entry + 3R: close remainingThree details catch most homemade versions:
- Standard deviation type. Some platforms use population standard deviation and some use sample. The difference slightly changes band width, so check that your EA's bands match the indicator on your chart.
- The H4 value on an H1 chart. Read the H4 TDI from closed H4 bars only. Using the current H4 bar lets the filter change mid-candle.
- Pip and point conversions. Five-digit pricing and gold's different point size break hard-coded pip values. Calculate money per point from
SYMBOL_TRADE_TICK_VALUEandSYMBOL_TRADE_TICK_SIZE.
Common mistakes
- Trading every green-red cross. Most crosses happen in the middle of nothing. Without the trend filter and the pullback to the yellow line, it is a noise generator.
- Ignoring band width. Signals inside pinched bands tend to fizzle. Wait for volatility.
- Buying when green is already at the top band. That is the end of the push, not the start.
- Changing the settings after a losing week. The TDI only has an edge, if it has one, under stable parameters tested over a long sample.
- Treating the TDI as five confirmations. All five lines come from one RSI. Add price structure (swing lows, key levels) for real confirmation.
Pre-trade checklist
- H4 Base Line above 50 and rising (below 50 and falling for sells)
- H1 Base Line on the same side of 50
- Green line pulled back to the yellow line in the last 6 bars
- Green crossed red on a closed bar, both on the right side of yellow
- Green below 68 and inside the bands (above 32 for sells)
- Band width at least 12 points
- No high-impact news in the next 2 hours
- Stop beyond the swing and at least 1 × ATR; size calculated for 0.5–1% risk
FAQ
Who created the TDI? Dean Malone. The indicator has since been ported to MetaTrader 4 and 5, TradeStation, NinjaTrader and TradingView.
What are the best TDI settings? The common defaults are RSI 13, volatility bands 34 with a 1.6185 multiplier, price line 2 and signal line 7. Shorter RSI periods give more signals and more noise. Whatever you choose, keep it fixed while you test.
Which timeframe works best? H1 for entries with an H4 filter is a good balance. The indicator can be used on M5, but signals there are noisier and costs eat a larger share of each trade.
Does the TDI repaint? The standard TDI does not, as long as you only act on closed bars. Some "TDI Pro" versions add arrows or divergence markers that can change after the fact, so check before you trust them.
Is the TDI better than RSI? It shows the same RSI data with more context: trend, signal and volatility in one view. It is not more information, but it is easier to read consistently.
Final word
The Traders Dynamic Index is popular because it turns RSI into a full decision panel: trend from the yellow line, timing from green and red, and stretch from the bands. The research on technical rules in FX says a single crossover will not carry an edge on its own, which is why this strategy layers a higher-timeframe trend, a pullback location and a volatility filter on top of it. Backtest the rules on your own pairs and broker, keep the settings fixed, and let the numbers decide whether it earns a place in your trading.
Related reading on Forex Algo-Trader: RSI Overbought/Oversold Trading Strategy, RSI Divergence: Spotting Hidden Reversals Without Guessing, Bollinger Band Snapback and The 50 EMA Pullback Strategy.
For educational purposes only. Trading forex and CFDs involves substantial risk of loss and is not suitable for every investor. Past and backtested results do not guarantee future performance. Test any strategy on a demo account first.
References
- Forex Strategies Resources. Traders Dynamic Index: How to Use (MT4, MT5).
- EarnForex. Traders Dynamic Index indicator and default parameters.
- LuxAlgo Library. Traders Dynamic Index.
- Menkhoff, L. and Taylor, M. P. (2007). The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis. Journal of Economic Literature, 45(4), 936–972.
- Neely, C. J., Weller, P. A. and Ulrich, J. M. (2009). The Adaptive Markets Hypothesis: Evidence from the Foreign Exchange Market. Journal of Financial and Quantitative Analysis, 44(2), 467–488.