Open-source scriptindicator/v1
Average Directional Index
Measure trend strength without assigning a bullish or bearish direction.
#adx#strength#trend
Description
The Average Directional Index is derived from directional movement and focuses only on trend strength. Higher readings indicate a stronger directional market, while lower readings indicate weaker or less directional movement.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedAverage Directional Index · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Average Directional Index", { overlay: false });
const diLength = input.int("DI Length", 14, { min: 1, max: 200 });
const smoothing = input.int("ADX Smoothing", 14, { min: 1, max: 200 });
plot(adx(diLength, smoothing), { title: "ADX", color: "#2962ff", lineWidth: 2 });
hline(25, { title: "Trend Level", color: "#ff9800", style: "dashed" });
hline(20, { title: "Weak Level", color: "#78909c", style: "dotted" });
Community discussion
0 comments
No comments yet. Start the discussion.