OPEN-SOURCE SCRIPT

TMA Strategy

113
The **TMA Strategy** is a trend-following strategy that leverages **Smoothed Moving Averages (SMMA)** and **candlestick patterns** to identify high-probability trading opportunities. It is designed for traders who want to capture strong trends while minimizing noise from short-term fluctuations.

**Key Features:**
✔ **Multiple Smoothed Moving Averages (SMMA):** Uses 21, 50, 100, and 200-period SMMAs to identify market trends and key support/resistance zones.
✔ **Candlestick Pattern Confirmation:** Incorporates **3-line strike** and **engulfing candle** patterns to confirm trade entries.
✔ **Dynamic Trend Filter:** A **2-period EMA** ensures that trades align with the dominant trend, reducing false signals.
✔ **Customizable Session Filter:** Allows users to enable/disable trading within specific market sessions (New York, London, Tokyo, etc.), ensuring trades are executed only during high-liquidity hours.
✔ **Risk Management:** Uses predefined exit conditions based on EMA/SMMA crossovers to lock in profits and minimize losses.

**Trading Logic:**
📌 **Long Entry:**
- Bullish Engulfing or 3-Line Strike pattern appears.
- Price is above the 200 SMMA.
- 2 EMA confirms an uptrend.
- Trade executes if session filter allows.

📌 **Short Entry:**
- Bearish Engulfing or 3-Line Strike pattern appears.
- Price is below the 200 SMMA.
- 2 EMA confirms a downtrend.
- Trade executes if session filter allows.

📌 **Exit Conditions:**
- Long trades exit when EMA(2) crosses **below** SMMA(200).
- Short trades exit when EMA(2) crosses **above** SMMA(200).

**Ideal Markets & Timeframes:**
✅ Best suited for **Forex, Stocks, and Crypto** markets.
✅ Works well on **higher timeframes (15m, 1H, 4H, Daily)** for stronger trend confirmation.

📢 **Disclaimer:**
This strategy is for educational purposes only. Backtest results do not guarantee future performance. Always use proper risk management and test in a demo account before live trading.

🚀 **Try the TMA Strategy now and enhance your trend-following approach!**

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。