On this page
What Traders Dynamic Index displays
Traders Dynamic Index, or TDI, combines RSI with moving averages and a volatility envelope. EarnForex adapted it from an earlier indicator by Dean Malone. Five plotted lines summarize related transformations of the same input; they are not five independent confirmations.
ForexBestRobots edition 1.10 is a marked derivative of EarnForex 1.08. It adds input and history guards, explicit buffer orientation, stable sample variance, independent event tracking, corrected arrow handling and guarded object cleanup. Original code, author notices, Apache 2.0 license and a change patch are included.
RSI, averages and volatility bands
Defaults use Close RSI13. Green G is SMA(RSI,2), red R is SMA(RSI,7), and yellow Y is SMA(RSI,34). The blue boundaries are U=Y+1.6185s and L=Y−1.6185s, where s is the sample standard deviation of the same 34 RSI readings, using divisor n−1. These are RSI bands, not price Bollinger Bands.
The RSI averages also support SMA, EMA, SMMA and LWMA. Changing their methods changes crosses. Levels 32, 50 and 68 are reference marks, not guarantees of reversal. The display scale is 0–100; a calculated band outside it may be clipped. Warm-up and missing data must not be mistaken for a zero-valued trading signal.
An upward cross requires a>b now and previous_a≤previous_b; a downward cross requires a<b now and previous_a≥previous_b. Equality alone is not a cross. The qualified green/red family additionally requires both lines above Y for upward or below Y for downward, on the evaluated candle.
Real EUR/USD examples
The figures reconstruct real archived Yahoo Finance EUR/USD H1 with Wilder RSI13 seeded from the first 13 changes and ample earlier context. Times are UTC. They are our calculations, not MetaTrader screenshots, tick replay or a profit backtest. Broker feeds and terminal initialization can differ. Letters annotate calculated events, not executed orders.
The default example marks red/yellow crosses. At A, the 11 June 2025 03:00 candle has R=51.028 below Y=51.063; that candle closes at 04:00. At B, 09:00 has R=50.668 above Y=50.458 and closes at 10:00. With Previous on H1, these close times are the earliest corresponding new-bar observations.
The optional green/red example shows rapid reversal: C at 4 June 11:00 has G=47.391 below R=48.044; D at 12:00 has G=54.169 above R=51.706. Their closes are 12:00 and 13:00. Opposing crosses one hour apart illustrate noise; no spread, entry, stop or trade return is calculated.
The H4 snapshot is projected over H1. For 12 June 08:00–12:00, final H4 readings are G=76.023, R=68.915 and Y=57.503. They are known only at 12:00, although historical projection places them from 08:00. This is a retrospective illustration, not proof those final values were available during the whole interval.



Real final Yahoo Finance OHLC, UTC; Wilder RSI reconstruction, not a native terminal capture. CSV includes candle closes and H4 availability times. Shared plots use technical line codes; explanations are localized.
Download chart calculation data (CSV) · 1Download chart calculation data (CSV) · 2Download chart calculation data (CSV) · 3
Timeframes, closed candles and history
UpperTimeframe defaults to PERIOD_CURRENT. The same or a higher timeframe is allowed; a lower one is rejected. Higher-timeframe values are mapped to chart candles belonging to that higher candle, so its developing values can change several lower-timeframe candles together. Program timestamps follow the broker chart clock; UTC in the figures is illustrative, with no timezone conversion.
TriggerCandle=Previous means the previous chart candle. On an H1 chart displaying H4, that does not guarantee the H4 candle is closed. Use a completed higher candle in any rule that needs fixed confirmation. Load enough source-timeframe history; after older history corrections, reattach if a full refresh is needed.
Edition 1.10 bounds RSI moving-average input to the actual source-timeframe history. This fixes SMMA with longer custom periods when the lower chart has more bars; default SMA2/7 values are unchanged.
Settings and default values
Both platforms have 37 functional inputs. MT4 adds three ____ separator strings; MT5 uses input groups. RSI_Period and Volatility_Band must be at least 2; line periods at least 1; StdDev positive. ArrowSize accepts 1–5. ArrowPrefix must be unique, nonempty, without spaces and at most 40 characters. The 32/50/68 plot levels are not input rows.
| Input | Default | Practical meaning |
|---|---|---|
RSI_Period | 13 | RSI lookback; default 13, minimum 2. |
RSI_Price | PRICE_CLOSE | Price used for RSI; default Close. |
Volatility_Band | 34 | Number of RSI readings in the envelope; default 34, minimum 2. |
StdDev | 1.6185 | Positive multiplier of sample standard deviation; default 1.6185. |
RSI_Price_Line | 2 | Green average period; default 2, minimum 1. |
RSI_Price_Type | MODE_SMA | Green average method; default SMA. |
Trade_Signal_Line | 7 | Red average period; default 7, minimum 1. |
Trade_Signal_Type | MODE_SMA | Red average method; default SMA. |
UpperTimeframe | PERIOD_CURRENT | Current or higher source timeframe; a lower timeframe is rejected. |
EnableNativeAlerts | false | Popup delivery channel; off by default. |
EnableEmailAlerts | false | Email channel; requires terminal configuration. |
EnablePushAlerts | false | Mobile push channel; requires terminal configuration. |
EnableArrowAlerts | false | Draw historical/current event arrows; off by default. |
EnableRedYellowCrossAlert | true | Enable red/yellow crosses; on by default. |
EnableHookAlert | false | Enable green/blue Hook events with 68/32 qualification. |
EnableGreenRedCrossAlert | false | Enable ordinary green/red crosses. |
EnableGreenRedCrossWithYellowAlert | false | Enable green/red crosses with both lines beyond yellow. |
EnableYellowGreenCrossAlert | false | Enable green/yellow crosses. |
TriggerCandle | Previous | Previous chart candle by default; Current evaluates the unfinished chart candle. |
RedYellowCrossArrowBullishColor | clrGreen | Arrow color for red/yellow cross (upward). |
RedYellowCrossArrowBearishColor | clrRed | Arrow color for red/yellow cross (downward). |
HookArrowBullishColor | clrGreen | Arrow color for Hook (upward). |
HookArrowBearishColor | clrRed | Arrow color for Hook (downward). |
GreenRedCrossArrowBullishColor | clrGreen | Arrow color for green/red cross, including the qualified family (upward). |
GreenRedCrossArrowBearishColor | clrRed | Arrow color for green/red cross, including the qualified family (downward). |
YellowGreenCrossArrowBullishColor | clrGreen | Arrow color for green/yellow cross (upward). |
YellowGreenCrossArrowBearishColor | clrRed | Arrow color for green/yellow cross (downward). |
RedYellowCrossArrowBullishCode | 233 | Arrow glyph code for red/yellow cross (upward). |
RedYellowCrossArrowBearishCode | 234 | Arrow glyph code for red/yellow cross (downward). |
HookArrowBullishCode | 71 | Arrow glyph code for Hook (upward). |
HookArrowBearishCode | 72 | Arrow glyph code for Hook (downward). |
GreenRedCrossArrowBullishCode | 200 | Arrow glyph code for green/red cross, including the qualified family (upward). |
GreenRedCrossArrowBearishCode | 201 | Arrow glyph code for green/red cross, including the qualified family (downward). |
YellowGreenCrossArrowBullishCode | 226 | Arrow glyph code for green/yellow cross (upward). |
YellowGreenCrossArrowBearishCode | 225 | Arrow glyph code for green/yellow cross (downward). |
ArrowSize | 1 | Arrow size 1–5; default 1. |
ArrowPrefix | "ForexBestRobots-TDI-" | Unique object namespace; default ForexBestRobots-TDI-. Duplicate or nested prefixes are rejected. |
Crosses, hooks, arrows and notifications
There are five event families: red/yellow, Hook, green/red, green/red with yellow qualification, and green/yellow. Red/yellow alone is enabled by default, but all three delivery channels and arrows are off. Event switches and delivery channels are separate; a visible line crossing does not by itself send a message.
The Hook uses the upstream two-candle OR condition: for an upper-band downward cross, green and the upper band must each exceed 68 on at least one of the two candles. They need not both exceed 68 on the current candle. The lower-band upward version similarly tests each line below 32 on either candle. This differs from a stricter simultaneous/current-candle rule.
The initial calculation and history resets are silent. Later notifications are limited to one per family per chart candle; families are tracked independently. Current signals and arrows can disappear or reverse while the candle forms, and an already delivered message cannot be withdrawn. Historical arrow anchors use the evaluated candle’s time and chart High/Low as drawing positions, not execution prices. Configure email/push in MetaTrader; failed delivery is not retried each tick.
Install and compile the source
- Download and extract the ZIP for your desktop platform.
- In MetaTrader choose File → Open Data Folder, then MQL4 or MQL5.
- Copy Indicators from the ZIP there; keep upstream separately as the original reference.
- Open Traders_Dynamic_Index_ForexBestRobots.mq4 or .mq5 in the matching MetaEditor, press F7 and inspect errors and warnings.
- Refresh Navigator → Indicators and attach the compiled indicator to a demo Forex chart.
- Start with defaults, a unique ArrowPrefix and channels/arrows off. Check history and timeframe behavior before enabling notifications.
Custom desktop indicators cannot be installed directly in the MetaTrader mobile application. No DLL or extra include dependency is needed.
Download Traders Dynamic Index free
Each platform ZIP includes marked MQ4/MQ5 source, the unchanged original, author notices, Apache 2.0, changes, a patch, checksums and installation notes in all 12 site languages. No DLL or extra include file is required. The package is for desktop MT4/MT5, not cTrader.
There is no ready EX4/EX5. We checked extracted numerical and event functions outside MetaTrader, including the MT5 source’s moving-average helper. Native compilation, rendering, broker history synchronization and real notification delivery have not been verified. Compile with F7 in the matching MetaEditor and test on a demo chart.
Free source ZIP · ForexBestRobots edition 1.10 · Compile in MetaEditor
Changing signals and practical limits
TDI describes transformations of past and current prices, not a probability of profit. A cross can be followed by a range, reversal or trend. Bands and thresholds do not supply a complete entry, stop, position size or exit rule. The examples do not establish trading performance.
Current RSI and averages move with the open candle. A closed chart candle can still show a developing higher-timeframe value. Historical MTF projection and arrows may use final higher-candle information that was unavailable at the earlier lower-candle time. Do not use that historical snapshot as an executable real-time backtest.
Older history and RSI/EMA initialization affect early readings. Full recalculation and many MTF instances can be expensive; test the terminal’s responsiveness. The desktop must remain running for notifications. The derivative checks do not replace a native platform test or guarantee delivery.
Frequently asked questions
What are the five lines?
Green is the fast RSI average, red the slow average, yellow the 34-reading RSI mean, and blue the upper/lower sample-deviation bands.
Are the bands price Bollinger Bands?
No. They are built on RSI; sample variance uses n−1. Default multiplier is 1.6185.
Does Previous freeze H4 on an H1 chart?
No. It chooses the previous H1 candle; its source H4 candle may still be developing.
Why are there no alerts by default?
Delivery channels and arrows are off. Enabling a signal family alone does not send notifications.
Can Current repaint?
Yes. Open-candle values and arrows can change, and MTF values can change until the higher candle closes.
What does a Hook actually test?
The original OR rule: each relevant line meets the 68/32 condition on either of the two candles, not necessarily both on the current one.
Is the download compiled?
No, it contains MQ4/MQ5 source. Use F7 in matching MetaEditor; native compilation/runtime have not been verified here.
Sources and review scope
The review follows a pinned EarnForex revision and documented ForexBestRobots modifications. Charts and CSV are our own real-data reconstructions and do not imply endorsement by EarnForex or Dean Malone.