OPEN-SOURCE SCRIPT
Updated CNPS10 - SMA/PSAR

This is a trend following trading system based on SMA signals, filtered and trailing stop by Parabolic SAR, served for VN30F1M
Release Notes
CNPS_10 — SMA / Parabolic SARIndicators
SMA(14) on close for trend direction. Parabolic SAR(0.02, 0.02, 0.2) as dynamic price-based confirmation.
Entry / Exit Rules
Long when SMA is rising AND price is above PSAR. Short when SMA is falling AND price is below PSAR. Exit when either condition flips — SMA turns against the trade OR price crosses the PSAR — whichever comes first. SL and TP also close the position independently.
Risk Management
Fixed 1 contract per trade. Stop Loss 10 pts, Take Profit 30 pts (optional, can be disabled). Risk/reward ratio 1:3 by default.
Time Filter
Trades allowed 09:15–14:30 only, avoiding the ATO open and ATC window. Any open position is force-closed at the first bar outside the session.
Release Notes
- Vietnamese template- Add more filters for better result: time filter, trend filter.
Release Notes
- Vietnamese template- Add more filters for better result: time filter, trend filter.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.