OPEN-SOURCE SCRIPT
MA Crossover Strategy with TP/SL

📊 MA Crossover Strategy with TP/SL
This strategy uses two simple moving averages (SMAs) to catch trend changes and trade breakouts with clear risk management.
🔥 How it works:
Enters a Long position when the fast SMA (short period) crosses above the slow SMA (long period), signaling an upward trend.
Enters a Short position when the fast SMA crosses below the slow SMA, signaling a downward trend.
🎯 Features:
Take Profit (TP): Automatically closes the trade at a defined percentage profit.
Stop Loss (SL): Limits potential losses with a predefined stop level.
Customizable parameters: Adjust the lengths of the moving averages, TP%, and SL% to fit your style.
Alerts: Receive notifications on every trade entry for timely action.
⚡️ Designed for traders looking for a simple, effective trend-following system with built-in risk control.
This strategy uses two simple moving averages (SMAs) to catch trend changes and trade breakouts with clear risk management.
🔥 How it works:
Enters a Long position when the fast SMA (short period) crosses above the slow SMA (long period), signaling an upward trend.
Enters a Short position when the fast SMA crosses below the slow SMA, signaling a downward trend.
🎯 Features:
Take Profit (TP): Automatically closes the trade at a defined percentage profit.
Stop Loss (SL): Limits potential losses with a predefined stop level.
Customizable parameters: Adjust the lengths of the moving averages, TP%, and SL% to fit your style.
Alerts: Receive notifications on every trade entry for timely action.
⚡️ Designed for traders looking for a simple, effective trend-following system with built-in risk control.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.