OPEN-SOURCE SCRIPT

TEMA OBOS Strategy 【Pakun】

331
📌 Overview
The TEMA + OBOS Strategy is an advanced trading strategy that combines the Triple Exponential Moving Average (TEMA) for trend-following and the Overbought/Oversold (OBOS) indicator for trade filtering.
This strategy leverages TEMA crossovers to identify trends and applies OBOS as a filter to improve entry precision.

💡 Main Objectives

Clearly determine trend direction (using TEMA)
Filter out overbought and oversold conditions (using OBOS)
Implement dynamic risk management (using ATR-based TP/SL)
This strategy is suitable for a wide range of markets, including Forex, stocks, and cryptocurrencies, and is best applied on mid-timeframes such as 15-minute to 1-hour charts.

📌 Key Features
🔹 Trend Analysis with TEMA (Triple EMA)

Generates entry signals based on ema3 and ema4 crossovers
Uses ema4 as the primary trend filter
🔹 Entry Optimization with OBOS (Overbought/Oversold Indicator)

up > down → Buy entry, up < down → Sell entry
Filters out excessive buying and selling conditions to improve accuracy
🔹 Take Profit & Stop Loss Based on ATR

ATR (Average True Range) multiplier is adjustable
Fully customizable TP/SL settings (default: TP = ATR × 2, SL = ATR × 1.5)
🔹 Customizable Parameters

TEMA Length (TEMA calculation period)
OBOS Length (OBOS calculation period)
Take Profit Multiplier (TP ratio)
Stop Loss Multiplier (SL ratio)
Show EMA? (Enable/disable TEMA lines)
Barcolor? (Enable/disable candlestick coloring)
📌 Trading Parameters
This strategy follows these trading rules:

✅ Long Entry (Buy)

ema3 crosses above ema4 (Golden Cross)
OBOS indicator confirms up > down (uptrend confirmation)
A long position is executed
✅ Short Entry (Sell)

ema3 crosses below ema4 (Death Cross)
OBOS indicator confirms up < down (downtrend confirmation)
A short position is executed
✅ Take Profit (TP)

Profit is taken when the price reaches Entry Price + ATR × TP multiplier (default: 2.0)
✅ Stop Loss (SL)

Loss is cut when the price reaches Entry Price - ATR × SL multiplier (default: 1.5)
📌 TP/SL values are fully customizable, allowing traders to fine-tune risk management.

📌 Risk Management Parameters
This strategy emphasizes flexible position sizing and risk control:

💰 Account Size: $7000
📉 Commissions & Slippage: Assumes 0-94 pips commission and 1 pip slippage
⚖️ Order Size: 10% of equity (adjustable as needed)

These settings help balance risk and reward while protecting capital.

📌 Visual Aids for Clarity
This strategy provides clear visual cues on the chart:

📊 TEMA Lines (3 EMA Levels)

Color change (Blue/Orange) indicates trend direction
ema3 (short-term) and ema4 (long-term) crossover signals
📉 OBOS Histogram

Green → Bullish pressure
Red → Bearish pressure
Blue → Potential trend shift
🔹 Entry & Exit Markers

🔼 Long Entry (Blue arrow)
🔽 Short Entry (Red arrow)
✅ Take Profit / Stop Loss Levels
📌 Originality & Enhancements
This strategy is based on the indicators "l_lonthoff" and "jdmonto0", with several improvements and enhancements.
While utilizing the core concepts of these indicators, we have optimized entry accuracy, improved visual clarity, and enhanced risk management features.

📌 Improvements & Upgrades
✅ Enhanced Trend Identification with TEMA (Triple EMA)

Uses ema3 (short-term) and ema4 (long-term) to detect trend shifts earlier
Reduces false signals and enables better trend-following trades
✅ Improved Filtering with OBOS (Overbought/Oversold Indicator)

Inspired by "jdmonto0", this feature filters overbought/oversold conditions for smarter trade entries
Reduces unnecessary trades and minimizes risk exposure
✅ Dynamic Risk Management with ATR (Average True Range)

Uses volatility-adjusted TP/SL levels instead of fixed values
Fully customizable ATR-based TP/SL multipliers (Default: TP = ATR × 2, SL = ATR × 1.5)
✅ Visual Enhancements for Clarity

TEMA lines change color dynamically to indicate trend direction
OBOS histogram provides an intuitive view of buying and selling pressure
Entry & exit markers make trades easy to track on the chart
📌 Summary
📌 TEMA + OBOS Strategy combines trend analysis and oscillators to create a powerful yet simple trading system:

Identifies trend direction using TEMA (Triple EMA)
Filters out noise and overbought/oversold conditions using OBOS
Applies ATR-based TP/SL settings for dynamic risk management
💡 Recommended for:
✅ Traders who prefer trend-following strategies
✅ Those who want a systematic, rules-based trading approach
✅ Users looking for a customizable strategy with strong risk management

📌 Try it out and backtest the results! 🚀

💡 How to Upload to TradingView
Paste this description in the Pine Script editor's "Strategy Description" field
Save and publish the script
Ensure that the "Description" field is filled with this content
Share it with the TradingView community!
📌 This strategy provides a structured, risk-managed approach to trading. Try it out and see how it performs! 🔥

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.