PROTECTED SOURCE SCRIPT

6EMA & SMA with alert

19
Overview

This indicator is designed to combine multiple moving averages, higher-timeframe levels, and flexible alerts into a single tool. It helps you monitor trend direction, dynamic support/resistance, and key daily/weekly/monthly levels without loading several separate indicators.

Main Features

1 12 Moving Averages in One Indicator

 ・Plots a total of 12 lines: 6 EMAs and 6 SMAs.

 ・All lengths and sources are fully configurable from the settings, so you can adapt them to your own style and timeframe.

2 Slope-Based Color Change

 ・One EMA and one SMA are colored based on their slope (rising vs. falling).

 ・This makes it easy to visually confirm when the medium/long-term bias is turning up or down.

3 Price-vs-MA Alerts

 ・You can enable alerts when price touches or crosses any selected EMA or SMA.

 ・Direction can be set to “Up”, “Down”, or “Both”, and you can choose to trigger only on bar close.

 ・The script can also send detailed alert() messages containing the symbol, timeframe, price, and line value at the moment of the cross.

4 Daily / Weekly / Monthly High–Low Levels

 ・Optionally display the current Daily, Weekly, and Monthly high/low levels as rays extended to the right.

 ・Each set of levels can be shown or hidden individually, and has its own color, style, and width options.

 ・Labels (DH/DL, WH/WL, MH/ML) are attached at the right side of each line for quick identification.

Notes & Disclaimer

This indicator is for charting and alerting purposes only. It does not open, close, or manage any positions.

It does not guarantee any specific results or performance. All examples are for educational and informational purposes only.

Always test and adjust the settings on your own symbols and timeframes, and use proper risk management when applying it to live trading.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.