OPEN-SOURCE SCRIPT
Trend Signal Grid

Trend Signal Grid
Based on Trend Direction & Force Index - TDFI [wm] by Causecelebre, the TDFI Grid is a multi-timeframe momentum indicator that builds on the original TDFI concept. It calculates TDFI across three user-selectable timeframes using three different lookback periods, creating a 3×3 consensus grid (9 readings total).
Each cell is classified as bullish, bearish, or neutral based on configurable upper and lower thresholds. When a majority of the 9 readings align in the same direction (default 65%), the indicator triggers a directional signal — either GRID UP or GRID DOWN. Alerts fire automatically on new signals so you never miss a shift.
How it works
The indicator uses a smoothed EMA-based momentum calculation, normalises the output against its recent highest absolute value, and then maps it across your chosen timeframes and lookback lengths. The results are displayed in a clean on-chart table showing the state of each timeframe/lookback combination at a glance.
Settings:
Timeframe 1, 2, 3 — Choose any three timeframes (defaults to 1m, 5m, 15m).
LB1, LB2, LB3 — Lookback periods for each TDFI calculation.
UP / DOWN thresholds — Controls how far the TDFI must move before a cell registers as bullish or bearish.
Majority — The percentage of the 9 cells that must agree to trigger a signal.
Table position — Place the grid anywhere on your chart.
Best used for
Trading setups where you need to confirm momentum alignment across multiple timeframes before entering or scaling a position. Works well on forex and metals.
Based on Trend Direction & Force Index - TDFI [wm] by Causecelebre, the TDFI Grid is a multi-timeframe momentum indicator that builds on the original TDFI concept. It calculates TDFI across three user-selectable timeframes using three different lookback periods, creating a 3×3 consensus grid (9 readings total).
Each cell is classified as bullish, bearish, or neutral based on configurable upper and lower thresholds. When a majority of the 9 readings align in the same direction (default 65%), the indicator triggers a directional signal — either GRID UP or GRID DOWN. Alerts fire automatically on new signals so you never miss a shift.
How it works
The indicator uses a smoothed EMA-based momentum calculation, normalises the output against its recent highest absolute value, and then maps it across your chosen timeframes and lookback lengths. The results are displayed in a clean on-chart table showing the state of each timeframe/lookback combination at a glance.
Settings:
Timeframe 1, 2, 3 — Choose any three timeframes (defaults to 1m, 5m, 15m).
LB1, LB2, LB3 — Lookback periods for each TDFI calculation.
UP / DOWN thresholds — Controls how far the TDFI must move before a cell registers as bullish or bearish.
Majority — The percentage of the 9 cells that must agree to trigger a signal.
Table position — Place the grid anywhere on your chart.
Best used for
Trading setups where you need to confirm momentum alignment across multiple timeframes before entering or scaling a position. Works well on forex and metals.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.