OPEN-SOURCE SCRIPT
Dammu AI ADVANCED PRO

1. Indicator Overview
Name: Dammu
Type: Overlay indicator (draws on price chart)
Purpose: Combines SuperTrend, SMA/EMA trends, Swing/Structure analysis, Order Blocks, Fair Value Gaps, High/Low levels, TP/SL labels, and alerts.
Pine Script Version: v5
2. SuperTrend Module
Computes SuperTrend line using ATR and sensitivity.
Signals:
Bullish: Price crosses above SuperTrend.
Bearish: Price crosses below SuperTrend.
Plots buy/sell labels 🚀🐻 based on SMA comparison and SuperTrend cross.
3. SMA/EMA Trend Components
SMA8 & SMA9: Used for additional trend confirmation.
EMA lines: Multiple EMAs with different multipliers for trend detection.
Trend Cloud: Uses Hull MA for trend smoothing.
4. Risk Management
TP/SL Levels: Automatic calculation of stop-loss and take-profit (TP1, TP2, TP3).
Configurable ATR-based risk percentage.
Lines and labels drawn for visual TP/SL.
5. Chart Features
Smooth Range Filter: Filters noise for trend detection.
Colored Trend Cloud: Upward trend = cyan, downward = red.
Sideways Market: ADX filter to color bars purple if trend is weak/sideways.
Bar Colors: Green/red based on SuperTrend signals.
6. Swing & Structure Analysis
Detects Swing Highs/Lows, labels as HH, LH, LL, HL.
Detects CHoCH (Change of Character) or BOS (Break of Structure).
Can show internal or swing structures with configurable label size and color.
7. Order Blocks (Smart Money Concepts)
Detects Internal Order Blocks (iOB) and Swing Order Blocks (OB).
Stores top/bottom/left/time/type in arrays.
Colors and shows boxes based on bullish/bearish type.
Automatically deletes OB if price breaks the block.
8. Fair Value Gaps (FVG)
Identifies gaps between candles as potential trading zones.
Configurable bullish/bearish colors and extension bars.
9. EQH/EQL (Equal Highs/Lows)
Detects equal highs/lows using a threshold.
Plots dotted lines and labels EQH/EQL.
10. High/Low Levels MTF
Optional plotting of previous daily, weekly, monthly highs/lows.
11. Premium/Discount Zones
Plots Premium, Discount, and Equilibrium Zones.
Colors: Premium = red, Discount = green, Equilibrium = gray.
12. Alerts
Buy/Sell alerts for:
SuperTrend crossover
BOS/CHoCH (swing/internal)
EQH/EQL triggers
13. Miscellaneous
Configurable visuals: line style, label size, transparency.
Adjustable volatility filters, ATR lengths, smoothing constants.
Integrated risk & reward visualization.
✅ In short:
This is an all-in-one Smart Money + Trend indicator with SuperTrend signals, swing/structure detection, order blocks, FVGs, EQH/EQL, TP/SL visualization, and optional alerts. It’s designed for both trend-following and order-block-based trading.
If you want, I can make a super-short 1-paragraph version that summarizes it even faster for quick reference.
Name: Dammu
Type: Overlay indicator (draws on price chart)
Purpose: Combines SuperTrend, SMA/EMA trends, Swing/Structure analysis, Order Blocks, Fair Value Gaps, High/Low levels, TP/SL labels, and alerts.
Pine Script Version: v5
2. SuperTrend Module
Computes SuperTrend line using ATR and sensitivity.
Signals:
Bullish: Price crosses above SuperTrend.
Bearish: Price crosses below SuperTrend.
Plots buy/sell labels 🚀🐻 based on SMA comparison and SuperTrend cross.
3. SMA/EMA Trend Components
SMA8 & SMA9: Used for additional trend confirmation.
EMA lines: Multiple EMAs with different multipliers for trend detection.
Trend Cloud: Uses Hull MA for trend smoothing.
4. Risk Management
TP/SL Levels: Automatic calculation of stop-loss and take-profit (TP1, TP2, TP3).
Configurable ATR-based risk percentage.
Lines and labels drawn for visual TP/SL.
5. Chart Features
Smooth Range Filter: Filters noise for trend detection.
Colored Trend Cloud: Upward trend = cyan, downward = red.
Sideways Market: ADX filter to color bars purple if trend is weak/sideways.
Bar Colors: Green/red based on SuperTrend signals.
6. Swing & Structure Analysis
Detects Swing Highs/Lows, labels as HH, LH, LL, HL.
Detects CHoCH (Change of Character) or BOS (Break of Structure).
Can show internal or swing structures with configurable label size and color.
7. Order Blocks (Smart Money Concepts)
Detects Internal Order Blocks (iOB) and Swing Order Blocks (OB).
Stores top/bottom/left/time/type in arrays.
Colors and shows boxes based on bullish/bearish type.
Automatically deletes OB if price breaks the block.
8. Fair Value Gaps (FVG)
Identifies gaps between candles as potential trading zones.
Configurable bullish/bearish colors and extension bars.
9. EQH/EQL (Equal Highs/Lows)
Detects equal highs/lows using a threshold.
Plots dotted lines and labels EQH/EQL.
10. High/Low Levels MTF
Optional plotting of previous daily, weekly, monthly highs/lows.
11. Premium/Discount Zones
Plots Premium, Discount, and Equilibrium Zones.
Colors: Premium = red, Discount = green, Equilibrium = gray.
12. Alerts
Buy/Sell alerts for:
SuperTrend crossover
BOS/CHoCH (swing/internal)
EQH/EQL triggers
13. Miscellaneous
Configurable visuals: line style, label size, transparency.
Adjustable volatility filters, ATR lengths, smoothing constants.
Integrated risk & reward visualization.
✅ In short:
This is an all-in-one Smart Money + Trend indicator with SuperTrend signals, swing/structure detection, order blocks, FVGs, EQH/EQL, TP/SL visualization, and optional alerts. It’s designed for both trend-following and order-block-based trading.
If you want, I can make a super-short 1-paragraph version that summarizes it even faster for quick reference.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。