← Script Marketplace
Open-source scriptindicator/v1

Average Directional Index

by Kodexius·@kodexius·

Measure trend strength without assigning a bullish or bearish direction.

#adx#strength#trend
Average Directional Index chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.