DNSE VN301!, BB-SMA Trend Following — Strategy by DNSE

Performance Metrics

Description

"Bollinger Bands Breakout with SMA Trend Filter" is a volatility-based trend-following strategy designed to capture strong directional price movements when price breaks beyond its recent volatility range. The strategy uses Bollinger Bands with a default SMA(20) basis and 2.0 standard deviations to identify bullish breakouts above the upper band and bearish breakouts below the lower band.To improve signal quality, the strategy combines Bollinger Band breakouts with a mandatory SMA(200) trend filter, allowing Long trades only when the SMA is rising and Short trades only when it is falling. By combining volatility expansion with broader trend confirmation, the strategy seeks to reduce counter-trend and false breakout signals while participating in stronger intraday movements. It also includes configurable stop loss, take profit, trading session, trade direction, and automatic end-of-session position closure for disciplined risk management. Strategy settings and configuration:Chart timeframe: recommended 5-minute chartPosition size: 3 contractsBollinger Bands length: 20Bollinger Bands multiplier: 2.0SMA length: 200Stop loss: 10 pointsTake profit: 20 pointsSMA trend filter: always enabledTake profit: On / OffTime filter: On / OffTrading session: 09:00 – 14:30Trade direction: Long / Short / BothDefault script settings:The strategy calculates Bollinger Bands using the SMA(20) of the closing price. The upper and lower bands are created by adding or subtracting two standard deviations around the middle line.When the closing price breaks above the upper Bollinger Band, buying pressure may be taking control. When the closing price breaks below the lower Bollinger Band, selling pressure may be taking control.SMA(200) is used as the main trend filter. When SMA(200) is rising, the script only allows Long trades. When SMA(200) is falling, the script only allows Short trades.In CNPS 04, the SMA(200) filter is always enabled. This helps the bot filter out breakout signals that go against the longer-term trend.Users can add the built-in Bollinger Bands indicator on TradingView with Length 20 and Multiplier 2.0 to visually monitor the signal on the price chart.Entry and exit rules:Long entry:Closing price > upper Bollinger BandAND SMA(200) is risingAND the signal appears during the trading sessionAND trade direction allows Long entriesLong exit:Stop loss: 10 points from entry priceTake profit: 20 points from entry price, if enabledOpposite breakout signal appearsReversal when a valid Short signal appearsAutomatic position close at the end of the trading sessionShort entry:Closing price dải trên Bollinger BandsVÀ SMA(200) dốc lênVÀ tín hiệu xuất hiện trong khung giờ giao dịchVÀ chiều giao dịch cho phép lệnh MuaThoát lệnh Mua:Cắt lỗ: 10 điểm từ giá vào lệnhChốt lời: 20 điểm từ giá vào lệnh, nếu bậtCó tín hiệu breakout ngược chiềuĐảo chiều khi xuất hiện tín hiệu Bán hợp lệTự động đóng lệnh khi hết khung giờ giao dịchVào lệnh Bán:Giá đóng cửa < dải dưới Bollinger BandsVÀ SMA(200) dốc xuốngVÀ tín hiệu xuất hiện trong khung giờ giao dịchVÀ chiều giao dịch cho phép lệnh BánThoát lệnh Bán:Cắt lỗ: 10 điểm từ giá vào lệnhChốt lời: 20 điểm từ giá vào lệnh, nếu bậtCó tín hiệu breakout ngược chiềuĐảo chiều khi xuất hiện tín hiệu Mua hợp lệTự động đóng lệnh khi hết khung giờ giao dịchTuyên bố rủi ro:Giao dịch hợp đồng tương lai có mức độ rủi ro cao và giá có thể biến động mạnh. Script này chỉ phục vụ mục đích tham khảo, nghiên cứu và kiểm thử. Người dùng cần hiểu rõ giao dịch phái sinh, khẩu vị rủi ro cá nhân và logic của chiến lược trước khi áp dụng vào giao dịch thực tế.Mọi quyết định đầu tư thuộc trách nhiệm của người dùng. phaisinh.online không chịu trách nhiệm cho bất kỳ khoản lỗ nào phát sinh từ việc sử dụng chiến lược này trong giao dịch thực tế. Hiệu quả trong quá khứ không đảm bảo kết quả trong tương lai.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView