OPEN-SOURCE SCRIPT

๐Ÿง  ProMA+TP/SL

207
๐Ÿง  ProMA+TP/SL โ€” Intelligent Trend Reversal Signal with Auto TP/SL & R:R Zones
๐Ÿ” Overview
ProMA+TP/SL is a smart trend reversal signal system that detects confirmed shifts in trend using a triple moving average (MA) method. It plots one-time buy/sell signals, automatic or custom Take Profit (TP) and Stop Loss (SL) zones, and a Risk:Reward (R:R) label โ€” all visualized on the chart.

This indicator is optimized for:

โœ… Stock Market (India) โ€” Intraday, Swing, Positional

โœ… Crypto Markets โ€” Scalping, Intraday, Swing, Positional

| Strategy Type | Fast MA | Mid MA | Slow MA |
| ------------- | ------- | ------ | ------- |
| Scalping | 5 | 13 | 21 |
| Intraday | 10 | 20 | 50 |
| Swing | 20 | 50 | 100 |
| Positional | 20 | 50 | 200 |

MA Type: Choose between EMA (default) and SMA

Dynamic MA lengths automatically adjust based on selected strategy type

| Condition | Logic |
| ------------------- | ---------------------------------------------------------------------------- |
| **Bullish** | Fast MA > Mid MA > Slow MA (and previous โ‰  Bullish) |
| **Bearish** | Fast MA < Mid MA < Slow MA (and previous โ‰  Bearish) |
| **One-Time Signal** | Signal fires only at new trend confirmation |
| **Session Lock** | For Indian stocks, signals are active only between **9:15 AM โ€“ 3:15 PM IST** |
| Setting | Behavior |
| ---------------------- | ---------------------------------------------- |
| Market = Stock (India) | Scalping is automatically switched to Intraday |
| Warning | A visual โš ๏ธ label appears to notify the trader |

| Strategy Type | TP (%) | SL (%) |
| ------------- | ------ | ------ |
| Scalping | 0.3 | 0.2 |
| Intraday | 0.5 | 0.3 |
| Swing | 1.5 | 1.0 |
| Positional | 3.0 | 1.5 |

๐Ÿ› ๏ธ Custom TP/SL override available via settings

TP and SL levels plotted as lines with % labels

Entry, TP, SL, and R:R zones are automatically visualized

๐Ÿ“ R:R Label Calculation
Component Description
๐Ÿ“Œ Entry Horizontal line at signal candleโ€™s close
๐ŸŽฏ TP Target line calculated using strategy %
๐Ÿ›‘ SL Stop line calculated using strategy %
๐Ÿ” R:R Displayed as R:R = 2.5, shows reward/risk ratio

๐ŸŸก Candle Coloring Scheme
Trend State Color
Bullish ๐ŸŸข Green
Bearish ๐Ÿ”ด Red
Neutral ๐ŸŸก Yellow

Helps traders visually interpret trend status at a glance.

๐Ÿ“ˆ Signal Visualization
Signal Type Marker
Buy ๐Ÿ”ผ Green triangle below bar
Sell ๐Ÿ”ฝ Red triangle above bar

Only one signal appears per trend reversal to reduce noise.

โœ… Best For:
๐Ÿ“Š Intraday and Swing traders

๐Ÿ’ก Traders who want clean entry/exit with R:R clarity

๐Ÿ“‰ Crypto and Indian stock market participants

๐Ÿ”• Users who prefer no repeated signals in same trend

โš ๏ธ Disclaimer:
This tool is meant for educational and planning purposes only.
Always confirm with price action, volume, or other confluences before trading.
This is not financial advice. Backtest thoroughly before use.


Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.