OPEN-SOURCE SCRIPT
ที่อัปเดต:

SMA Strategy Builder 2TP [alpolcaymis]

167
📄 Indicator Description for Publishing:
SMA Strategy Builder 2TP [alpolcaymis]
📊 Build, Test, and Optimize Your SMA-Based Trading Strategy with Dual Take-Profit Levels

🚀 Description:
SMA Strategy Builder 2TP is a powerful and flexible trading indicator designed to help you build and test SMA-based long/short trading strategies with two-step take-profit (TP) levels for enhanced profitability and risk management.

This tool provides a dynamic approach to trading by allowing you to:

⚡ Execute Long/Short trades based on SMA crossovers.
🎯 Set two take-profit levels:
TP1: Closes 50% of the position.
TP2: Closes the remaining 50% of the position.
💵 Adjust initial capital for backtesting.
💸 Apply customizable commission rates (or turn it off) to simulate real trading conditions.
📈 Track capital growth with an optional capital curve.
🔢 Monitor each trade with clear labels showing:
Updated capital
Percentage profit/loss
Trade count
🌟 Key Features:
2-Step Take-Profit Strategy: Optimize profits by splitting your position into two exit levels.
Customizable SMA Period: Adjust the SMA period to suit your trading style.
Flexible Commission Settings: Simulate real trading scenarios with adjustable commission rates.
Capital Tracking: Visualize your portfolio growth over time.
Clear Trade Visualization: Profit/loss percentages and trade counts displayed directly on the chart.
Dynamic SMA Coloring: SMA line changes color based on trade position (green for long, red for short).
Instant Alerts: Get notified when long/short signals or TP targets are reached.
⚡ Why Use This Indicator?
This strategy builder is perfect for traders who want to:

💡 Validate SMA strategies before going live.
📊 Optimize take-profit levels for better risk/reward ratios.
🏹 Understand performance impact when partial profits are taken at different stages.
🔄 Refine trading strategies by experimenting with commission rates and SMA settings.
💬 How to Use:
1️⃣ Adjust the SMA period based on your strategy.
2️⃣ Set TP1 and TP2 levels (%).
3️⃣ Choose your initial capital and commission rate.
4️⃣ Enable capital curve tracking if you want to visualize performance.
5️⃣ Use TradingView alerts to monitor key events in real-time.

🔔 Alerts Provided:
Long Signal: When price crosses above SMA.
Short Signal: When price crosses below SMA.
TP1 Reached: 50% position closure.
TP2 Reached: Final 50% position closure.
🎯 Final Notes:
Designed for educational and backtesting purposes.
Ensure you adapt parameters according to your preferred trading style and risk tolerance.
Compatible with TradingView’s real-time alerts for better trade management.
✨ Happy trading! Optimize, test, and grow with SMA Strategy Builder 2TP [alpolcaymis]. 🚀📈
เอกสารเผยแพร่
📈 SMA Strategy Builder 2TP [alpolcaymis]
Description:
This script provides a dynamic SMA-based trading strategy with a two-step take-profit (TP) system. It allows traders to easily customize SMA periods, TP levels, and commission rates. Designed for both beginners and experienced traders, it delivers clear visual feedback on trades, capital growth, and performance.

🚀 Key Features:
📊 Dynamic SMA Strategy:
Automatically opens Long positions when the price crosses above the SMA and Short positions when it crosses below.

🎯 Two-Step Take-Profit System:

TP1: Closes 50% of the position at the first TP level.
TP2: Closes the remaining 50% at the second TP level.
💸 Commission Customization:
Adjust the commission rate from the settings. Set it to zero if no commission is needed.

💵 Capital Tracking:

Initial capital customizable by the user.
Real-time capital growth displayed after each trade.
Cumulative profit/loss tracking with percentage changes.
🏹 Automatic Position Management:

If the SMA crosses back before reaching the second TP, the remaining position is closed at the current price.
New positions are opened only after the previous one is fully closed.
📈 Clear Visual Indicators:

Long/Short entry signals.
Step-line TP levels with visual markers for TP1 and TP2.
Optional capital curve tracking for better performance visualization.
🔔 Alerts:
Get notified when:

A Long or Short signal is generated.
TP1 (50%) or TP2 (100%) targets are reached.
⚡ How to Use:
1️⃣ Load the script onto your chart.
2️⃣ Adjust parameters (SMA period, TP levels, initial capital, and commission) in the settings.
3️⃣ Enable the capital curve to track the growth of your initial capital over time.
4️⃣ Set alerts for real-time notifications on trade signals and TP achievements.

🌐 About the Creator:
Developed by alpolcaymis, this script aims to provide traders with a simple yet effective SMA-based trading system with dynamic risk management and real-time capital tracking.

⚠️ Disclaimer:
This script is for educational purposes only and should not be considered financial advice. Trading involves risks. Always do your own research and consult with a financial advisor before trading. Past performance is not indicative of future results.

💬 Feel free to leave feedback, share improvements, or ask questions!
🚀 Happy Trading! 📈✨

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน