OPEN-SOURCE SCRIPT
已更新 CNPS 9 - SMA7/50 Cross

This is a trend following trading system based on crossing signals of two SMA, served on VN30F1M
發行說明
CNPS_09 — SMA Cross BotIndicators
Uses two Simple Moving Averages — a fast SMA (default 7) and a slow SMA (default 50) — plotted directly on the price chart. An optional SMA Trend Filter (default 200) can be enabled to restrict trades to the dominant trend direction.
Entry & Exit Rules
Long entry when SMA7 crosses above SMA50; Short entry when SMA7 crosses below SMA50. Signals are confirmed at the close of the signal candle and executed at the open of the next candle. When a reversal signal appears, the bot automatically closes the existing position and opens a new one in the opposite direction.
Risk Management
Fixed stop loss and take profit in price points, calculated from the average entry price. Default SL is 10 points, TP is 30 points (1:3 risk-reward). TP can be toggled on/off via input. Position size is fixed at 1 contract per trade.
Time Filter
Restricts entries to a defined trading session (default 9:15 – 14:30 ICT), avoiding the ATO open and the ATC closing period of VN30F1M. When the session ends, any open position is immediately closed at the first bar outside the session window. Bars outside the session are shaded grey on the chart.
發行說明
- Vietnamese template- Add more filters for better result: time filter, trend filter.
- Change SMA to EMA because of original version is duplicated to 3SMA cross system
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。