Hướng Dẫn Sử Dụng Bot CNPS73 - Bollinger Band Re-entry cho VN30F1M
TradingviewHướng dẫn chi tiết Bot CNPS73 Bollinger Band Re-entry trên TradingView cho VN30F1M: cơ chế đảo chiều Mean Reversion khi giá quay lại dải Bollinger, bộ lọc đa tầng và quản trị rủi ro SL 5 điểm / TP 15 điểm.

Mục lục
Trong giao dịch phái sinh VN30F1M, giá thường xuyên có những nhịp biến động quá mức (overshoot) xuyên thủng biên trên hoặc biên dưới của dải Bollinger rồi nhanh chóng đảo chiều quay trở lại bên trong dải. Nếu nhà đầu tư vào lệnh đuổi theo các nhịp phá vỡ giả (fakeout) hoặc bắt đáy/đỉnh cảm tính mà thiếu tín hiệu xác nhận quay đầu, tài khoản rất dễ bị quét dừng lỗ liên tục.
Bot CNPS73 - Bollinger Band Re-entry (strategy(title="CNPS73 BOLLINGER BAND RE-ENTRY")) được viết bằng Pine Script v6 trên nền tảng TradingView nhằm tự động hóa chiến lược đảo chiều về giá trị trung bình (Mean Reversion) một cách kỷ luật. Bot chỉ kích hoạt lệnh khi giá đã đóng cửa quay trở lại vào trong dải Bollinger (hoặc rút chân từ ngoài dải) kèm theo hệ thống bộ lọc đa tầng tùy chọn.
Những điểm nổi bật cốt lõi của Bot CNPS73:
- Hai chế độ nhận diện Re-entry linh hoạt: Hỗ trợ cả chế độ nến trước đóng ngoài dải (
Previous Close Outside) và chế độ rút chân quét biên (Wick Rejection). - Bộ lọc xác nhận đa tầng: Tích hợp tùy chọn lọc độ xuyên thủng theo ATR, hướng nến, RSI, độ rộng Bollinger Band (
BB Width %), đột biến khối lượng (Volume Spike) và xu hướng khung H1 (Confirmed H1 EMA Bias). - Quản trị rủi ro cố định theo điểm: Mặc định thiết lập tỷ lệ Risk:Reward 1:3 với Stop Loss 5.0 điểm và Take Profit 15.0 điểm, kết hợp đóng lệnh bắt buộc cuối phiên (
Force Close). - Kiểm soát tần suất và chẩn đoán trực quan: Giới hạn số lệnh tối đa mỗi ngày (mặc định 2 lệnh/ngày), chống vào trùng lệnh trên cùng một nến và tích hợp bảng chẩn đoán (
Diagnostics Table) 20 dòng theo dõi toàn bộ luồng lọc tín hiệu.
1. CNPS73 Bollinger Band Re-entry là gì?
CNPS73 Bollinger Band Re-entry là một hệ thống giao dịch tự động theo trường phái Mean Reversion, được xây dựng xoay quanh 4 trụ cột kỹ thuật chính:
- Động cơ Bollinger Bands & Nhận diện Re-entry: Tính toán đường trung tâm (
SMA 20) và hai biên độ lệch chuẩn (2.0 * StDev), từ đó phát hiện thời điểm giá vượt biên rồi quay trở lại bên trong dải theo hai chế độPrevious Close OutsidehoặcWick Rejection. - Hệ thống bộ lọc chất lượng Setup & Regime: Cho phép bật/tắt độc lập các bộ lọc như độ xuyên thủng tối thiểu theo ATR (
Minimum Band Penetration), hướng nến xác nhận, RSI quá mua/quá bán, độ rộng dải Bollinger (BB Width %), đột biến khối lượng và xu hướng EMA khung H1. - Bộ kiểm soát giao dịch & Phiên (Trade & Session Control): Quản lý trạng thái vị thế phẳng (
positionFlat), giới hạn số lệnh trong ngày (maximumTradesPerDay), chọn chiều giao dịch (Long,Short,Both), lọc khung giờ vào lệnh theo múi giờAsia/Ho_Chi_Minhvà đóng vị thế bắt buộc trước khi kết thúc phiên. - Quản trị rủi ro & Cảnh báo tự động: Cài đặt mức cắt lỗ/chốt lời cố định bằng điểm (
stopLossPoints = 5.0,takeProfitPoints = 15.0), vẽ trực tiếp đường SL/TP đang hoạt động lên biểu đồ và xuất thông điệp Alert chi tiết cho từng sự kiện.
Bảng thông số mặc định
| Nhóm thông số | Tên thông số trong code | Giá trị mặc định | Ý nghĩa |
|---|---|---|---|
| Bollinger | bbLength | 20 | Chu kỳ tính đường trung bình SMA của Bollinger Bands |
| Bollinger | bbMultiplier | 2.0 | Hệ số nhân độ lệch chuẩn (Standard Deviation) |
| Bollinger | bbSource | close | Nguồn giá tính Bollinger Bands |
| Re-entry | signalMode | "Previous Close Outside" | Chế độ tín hiệu (Previous Close Outside hoặc Wick Rejection) |
| Re-entry | requireCandleDirection | false | Yêu cầu nến tín hiệu cùng chiều (nến xanh cho Long, nến đỏ cho Short) |
| Re-entry | requireMinimumPenetration | false | Yêu cầu mức độ xuyên thủng biên tối thiểu theo ATR |
| Re-entry | minimumPenetrationATR | 0.10 | Ngưỡng xuyên thủng tối thiểu tính bằng hệ số ATR |
| RSI | useRSIFilter | false | Bật/tắt bộ lọc RSI |
| RSI | rsiLength / longRSIMax / shortRSIMin | 14 / 40.0 / 60.0 | Chu kỳ RSI, ngưỡng RSI tối đa cho Long và tối thiểu cho Short |
| Band Width | useWidthFilter | false | Bật/tắt bộ lọc độ rộng dải Bollinger (%) |
| Band Width | minimumBBWidthPercent / maximumBBWidthPercent | 0.20 / 10.0 | Biên độ phần trăm BB Width tối thiểu và tối đa cho phép |
| Volume | requireVolumeSpike | false | Yêu cầu có đột biến khối lượng khi vào lệnh |
| Volume | volumeAverageLength / volumeSpikeFactor | 20 / 1.20 | Chu kỳ trung bình Volume và hệ số đột biến tối thiểu |
| H1 Trend | useH1EMABias / h1EMALength | false / 50 | Bật/tắt lọc xu hướng theo nến H1 đã đóng và chu kỳ EMA H1 |
| ATR | atrLength | 14 | Chu kỳ tính chỉ báo ATR |
| Risk Management | stopLossPoints / takeProfitPoints | 5.0 / 15.0 | Mức Stop Loss và Take Profit cố định (tính bằng điểm) |
| Trade Control | maximumTradesPerDay | 2 | Số lệnh tối đa được phép mở trong một ngày giao dịch |
| Trade Control | tradeDirection | "Long" | Chiều giao dịch cho phép (Long, Short, Both) |
| Session | useSessionFilter / strategyTimezone | false / "Asia/Ho_Chi_Minh" | Bật/tắt lọc phiên vào lệnh và múi giờ chiến lược |
| Session | sessionStartHour:Minute / lastEntryHour:Minute | 09:00 / 14:30 | Giờ bắt đầu phiên và giờ vào lệnh cuối cùng |
| Session | sessionEndHour:Minute | 14:45 | Thời điểm đóng toàn bộ vị thế bắt buộc cuối phiên |
| Alerts & Display | disableSLTPAlerts / showBollinger / showActiveSLTP | false / true / true | Tắt cảnh báo SL/TP, hiển thị dải BB và đường SL/TP |
| Display | showH1EMA / showSignalMarkers / showDiagnostics | false / false / false | Hiển thị EMA H1, mũi tên setup và bảng chẩn đoán |
Source Code CNPS73 Bollinger Band Re-entry
Bạn có thể sao chép toàn bộ mã nguồn Pine Script v6 dưới đây để dán trực tiếp vào Pine Editor trên TradingView:
//@version=6
strategy(title="CNPS73 BOLLINGER BAND RE-ENTRY", shorttitle="CNPS73 BB REENTRY", overlay=true, initial_capital=100000000, default_qty_type=strategy.fixed, default_qty_value=1, pyramiding=0, margin_long=0, margin_short=0, slippage=0, commission_type=strategy.commission.cash_per_contract, commission_value=0, fill_orders_on_standard_ohlc=true, process_orders_on_close=true, calc_on_order_fills=true, max_labels_count=300, max_lines_count=300, max_bars_back=5000)
// ============================================================================
// CNPS73 BOLLINGER BAND RE-ENTRY
// MEAN REVERSION STRATEGY
//
// LONG:
// Previous close below Lower Band
// Current close back above Lower Band
// -> Optional filters
// -> LONG
//
// SHORT:
// Previous close above Upper Band
// Current close back below Upper Band
// -> Optional filters
// -> SHORT
//
// Optional Wick Rejection mode.
//
// DEFAULT SL = 5 POINTS
// DEFAULT TP = 15 POINTS
// ============================================================================
// ============================================================================
// SECTION 1: BOLLINGER SETTINGS
// ============================================================================
bbLength = input.int(20, "Bollinger Length", minval=2, maxval=500, group="Bollinger")
bbMultiplier = input.float(2.0, "Standard Deviation Multiplier", minval=0.1, step=0.1, group="Bollinger")
bbSource = input.source(close, "Bollinger Source", group="Bollinger")
// ============================================================================
// SECTION 2: RE-ENTRY SETTINGS
// ============================================================================
signalMode = input.string("Previous Close Outside", "Re-entry Signal Mode", options=["Previous Close Outside", "Wick Rejection"], group="Re-entry")
requireCandleDirection = input.bool(false, "Require Bullish / Bearish Candle?", group="Re-entry")
requireMinimumPenetration = input.bool(false, "Require Minimum Band Penetration?", group="Re-entry")
minimumPenetrationATR = input.float(0.10, "Minimum Penetration / ATR", minval=0.0, step=0.05, group="Re-entry")
// ============================================================================
// SECTION 3: RSI FILTER
// ============================================================================
useRSIFilter = input.bool(false, "Use RSI Filter?", group="RSI")
rsiLength = input.int(14, "RSI Length", minval=2, group="RSI")
longRSIMax = input.float(40.0, "Maximum RSI For Long", minval=1, maxval=100, group="RSI")
shortRSIMin = input.float(60.0, "Minimum RSI For Short", minval=1, maxval=100, group="RSI")
// ============================================================================
// SECTION 4: BAND WIDTH FILTER
// ============================================================================
useWidthFilter = input.bool(false, "Use Band Width Filter?", group="Band Width")
minimumBBWidthPercent = input.float(0.20, "Minimum BB Width (%)", minval=0.0, step=0.05, group="Band Width")
maximumBBWidthPercent = input.float(10.0, "Maximum BB Width (%)", minval=0.1, step=0.5, group="Band Width")
// ============================================================================
// SECTION 5: VOLUME FILTER
// ============================================================================
requireVolumeSpike = input.bool(false, "Require Volume Spike?", group="Volume")
volumeAverageLength = input.int(20, "Volume Average Length", minval=2, group="Volume")
volumeSpikeFactor = input.float(1.20, "Volume Spike Factor", minval=0.1, step=0.1, group="Volume")
// ============================================================================
// SECTION 6: H1 TREND FILTER
// ============================================================================
useH1EMABias = input.bool(false, "Use Confirmed H1 EMA Bias?", group="H1 Trend")
h1EMALength = input.int(50, "H1 EMA Length", minval=1, group="H1 Trend")
// ============================================================================
// SECTION 7: ATR
// ============================================================================
atrLength = input.int(14, "ATR Length", minval=1, group="ATR")
// ============================================================================
// SECTION 8: RISK MANAGEMENT
// ============================================================================
stopLossPoints = input.float(5.0, "Stop Loss (Points)", minval=0.1, step=0.5, group="Risk Management")
takeProfitPoints = input.float(15.0, "Take Profit (Points)", minval=0.1, step=0.5, group="Risk Management")
// ============================================================================
// SECTION 9: TRADE CONTROL
// ============================================================================
maximumTradesPerDay = input.int(2, "Maximum Trades Per Day", minval=1, maxval=20, group="Trade Control")
tradeDirection = input.string("Long", "Trade Direction", options=["Long", "Short", "Both"], group="Trade Control")
bool allowLong = (tradeDirection == "Long" or tradeDirection == "Both")
bool allowShort = (tradeDirection == "Short" or tradeDirection == "Both")
// ============================================================================
// SECTION 10: SESSION
// ============================================================================
useSessionFilter = input.bool(false, "Use Entry Session Filter?", group="Session")
strategyTimezone = input.string("Asia/Ho_Chi_Minh", "Strategy Timezone", group="Session")
sessionStartHour = input.int(9, "Session Start Hour", minval=0, maxval=23, group="Session")
sessionStartMinute = input.int(0, "Session Start Minute", minval=0, maxval=59, group="Session")
lastEntryHour = input.int(14, "Last Entry Hour", minval=0, maxval=23, group="Session")
lastEntryMinute = input.int(30, "Last Entry Minute", minval=0, maxval=59, group="Session")
sessionEndHour = input.int(14, "Force Close Hour", minval=0, maxval=23, group="Session")
sessionEndMinute = input.int(45, "Force Close Minute", minval=0, maxval=59, group="Session")
// ============================================================================
// SECTION 11: ALERT CONTROL
// ============================================================================
disableSLTPAlerts = input.bool(false, "Disable SL / TP Alerts?", group="Alerts")
// ============================================================================
// SECTION 12: DISPLAY
// ============================================================================
showBollinger = input.bool(true, "Show Bollinger Bands?", group="Display")
showH1EMA = input.bool(false, "Show H1 EMA?", group="Display")
showSignalMarkers = input.bool(false, "Show Setup Markers?", group="Display")
showActiveSLTP = input.bool(true, "Show Active SL / TP?", group="Display")
showDiagnostics = input.bool(false, "Show Diagnostics?", group="Display")
// ============================================================================
// SECTION 13: TIME ENGINE
// ============================================================================
int currentMinute = (hour(time, strategyTimezone) * 60 + minute(time, strategyTimezone))
int currentCloseMinute = (hour(time_close, strategyTimezone) * 60 + minute(time_close, strategyTimezone))
int sessionStartTotal = (sessionStartHour * 60 + sessionStartMinute)
int lastEntryTotal = (lastEntryHour * 60 + lastEntryMinute)
int sessionEndTotal = (sessionEndHour * 60 + sessionEndMinute)
bool entrySession = (currentMinute >= sessionStartTotal and currentCloseMinute <= lastEntryTotal)
bool sessionOK = (not useSessionFilter or entrySession)
// ============================================================================
// SECTION 14: TRADING DAY
// ============================================================================
int tradingDayKey = (year(time, strategyTimezone) * 10000 + month(time, strategyTimezone) * 100 + dayofmonth(time, strategyTimezone))
bool newTradingDay = (bar_index == 0 or tradingDayKey != tradingDayKey[1])
var int tradesToday = 0
if newTradingDay
tradesToday := 0
// ============================================================================
// SECTION 15: BOLLINGER ENGINE
// ============================================================================
float bbBasis = ta.sma(bbSource, bbLength)
float bbDeviation = (bbMultiplier * ta.stdev(bbSource, bbLength))
float bbUpper = (bbBasis + bbDeviation)
float bbLower = (bbBasis - bbDeviation)
bool bandsReady = (not na(bbUpper) and not na(bbLower) and not na(bbUpper[1]) and not na(bbLower[1]))
// ============================================================================
// SECTION 16: BAND WIDTH
// ============================================================================
float bbWidth = (bbUpper - bbLower)
float bbWidthPercent = (bbBasis != 0 ? 100.0 * bbWidth / math.abs(bbBasis) : na)
bool widthOK = (not useWidthFilter or (not na(bbWidthPercent) and bbWidthPercent >= minimumBBWidthPercent and bbWidthPercent <= maximumBBWidthPercent))
// ============================================================================
// SECTION 17: ATR
// ============================================================================
float atr = ta.atr(atrLength)
// ============================================================================
// SECTION 18: PREVIOUS CLOSE OUTSIDE
// ============================================================================
bool previousCloseBelow = (bandsReady and close[1] < bbLower[1])
bool previousCloseAbove = (bandsReady and close[1] > bbUpper[1])
// ============================================================================
// SECTION 19: RE-ENTRY DETECTION
// ============================================================================
//
// Mode 1: Previous Close Outside
//
// Long:
// Previous close below previous lower band.
// Current close returns above current lower band.
//
// Short:
// Previous close above previous upper band.
// Current close returns below current upper band.
//
// Mode 2: Wick Rejection
//
// Long:
// Current low breaks below current lower band.
// Current close returns above lower band.
//
// Short:
// Current high breaks above current upper band.
// Current close returns below upper band.
//
// ============================================================================
bool bullCloseReentry = (previousCloseBelow and close >= bbLower)
bool bearCloseReentry = (previousCloseAbove and close <= bbUpper)
bool bullWickReentry = (bandsReady and low < bbLower and close >= bbLower)
bool bearWickReentry = (bandsReady and high > bbUpper and close <= bbUpper)
bool bullReentry = (signalMode == "Previous Close Outside" ? bullCloseReentry : bullWickReentry)
bool bearReentry = (signalMode == "Previous Close Outside" ? bearCloseReentry : bearWickReentry)
// ============================================================================
// SECTION 20: PENETRATION DISTANCE
// ============================================================================
float bullPenetration = (signalMode == "Previous Close Outside" ? bbLower[1] - close[1] : bbLower - low)
float bearPenetration = (signalMode == "Previous Close Outside" ? close[1] - bbUpper[1] : high - bbUpper)
bool longPenetrationOK = (not requireMinimumPenetration or (not na(atr) and atr > 0 and bullPenetration >= minimumPenetrationATR * atr))
bool shortPenetrationOK = (not requireMinimumPenetration or (not na(atr) and atr > 0 and bearPenetration >= minimumPenetrationATR * atr))
// ============================================================================
// SECTION 21: CANDLE DIRECTION
// ============================================================================
bool bullishCandle = (close > open)
bool bearishCandle = (close < open)
bool longCandleOK = (not requireCandleDirection or bullishCandle)
bool shortCandleOK = (not requireCandleDirection or bearishCandle)
// ============================================================================
// SECTION 22: RSI FILTER
// ============================================================================
float rsi = ta.rsi(close, rsiLength)
bool longRSIOK = (not useRSIFilter or (not na(rsi) and rsi <= longRSIMax))
bool shortRSIOK = (not useRSIFilter or (not na(rsi) and rsi >= shortRSIMin))
// ============================================================================
// SECTION 23: VOLUME FILTER
// ============================================================================
float averageVolume = ta.sma(volume, volumeAverageLength)
bool volumeSpike = (not na(averageVolume) and volume >= averageVolume * volumeSpikeFactor)
bool volumeOK = (not requireVolumeSpike or volumeSpike)
// ============================================================================
// SECTION 24: CONFIRMED H1 EMA
// ============================================================================
//
// Uses previous completed H1 candle.
//
// Intended for intraday charts below 60 minutes.
//
// ============================================================================
float h1EMA = request.security(syminfo.tickerid, "60", ta.ema(close, h1EMALength)[1], gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_on)
float h1Close = request.security(syminfo.tickerid, "60", close[1], gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_on)
bool longBiasOK = (not useH1EMABias or (not na(h1EMA) and not na(h1Close) and h1Close > h1EMA))
bool shortBiasOK = (not useH1EMABias or (not na(h1EMA) and not na(h1Close) and h1Close < h1EMA))
// ============================================================================
// SECTION 25: BASE SETUPS
// ============================================================================
bool longBase = (bullReentry and longPenetrationOK and longCandleOK)
bool shortBase = (bearReentry and shortPenetrationOK and shortCandleOK)
// ============================================================================
// SECTION 26: RAW SIGNALS
// ============================================================================
bool rawLongSignal = (longBase and longRSIOK and widthOK and volumeOK and longBiasOK)
bool rawShortSignal = (shortBase and shortRSIOK and widthOK and volumeOK and shortBiasOK)
// ============================================================================
// SECTION 27: POSITION STATE
// ============================================================================
bool positionFlat = (strategy.position_size == 0)
bool positionLong = (strategy.position_size > 0)
bool positionShort = (strategy.position_size < 0)
bool positionJustClosed = (positionFlat and strategy.position_size[1] != 0)
// ============================================================================
// SECTION 28: CAN TRADE
// ============================================================================
bool dailyTradeLimitOK = (tradesToday < maximumTradesPerDay)
bool canTrade = (positionFlat and dailyTradeLimitOK and sessionOK and currentCloseMinute < sessionEndTotal and barstate.isconfirmed)
// ============================================================================
// SECTION 29: SIGNAL PROTECTION
// ============================================================================
bool ambiguousSignal = (rawLongSignal and rawShortSignal)
var int lastEntryBar = na
bool notEnteredThisBar = (na(lastEntryBar) or lastEntryBar != bar_index)
bool finalLongSignal = (canTrade and notEnteredThisBar and allowLong and rawLongSignal and not ambiguousSignal)
bool finalShortSignal = (canTrade and notEnteredThisBar and allowShort and rawShortSignal and not ambiguousSignal)
// ============================================================================
// SECTION 30: DIAGNOSTIC COUNTERS
// ============================================================================
var int belowBandCount = 0
var int aboveBandCount = 0
var int bullReentryCount = 0
var int bearReentryCount = 0
var int longBaseCount = 0
var int shortBaseCount = 0
var int longSignalCount = 0
var int shortSignalCount = 0
var int longEntryCount = 0
var int shortEntryCount = 0
var int lastCountedBar = na
if (barstate.isconfirmed and (na(lastCountedBar) or lastCountedBar != bar_index))
lastCountedBar := bar_index
if close < bbLower and close[1] >= bbLower[1]
belowBandCount += 1
if close > bbUpper and close[1] <= bbUpper[1]
aboveBandCount += 1
if bullReentry
bullReentryCount += 1
if bearReentry
bearReentryCount += 1
if longBase
longBaseCount += 1
if shortBase
shortBaseCount += 1
if rawLongSignal
longSignalCount += 1
if rawShortSignal
shortSignalCount += 1
// ============================================================================
// SECTION 31: LONG ENTRY
// ============================================================================
if finalLongSignal
strategy.entry("Long", strategy.long, comment="BB Re-entry Long", alert_message="🟢 VÀO VỊ THẾ LONG (CNPS73 BB Re-entry)\\n🎯 Giá vào: " + str.tostring(close, format.mintick) + "\\n🛑 Cắt lỗ (SL): " + str.tostring(close - stopLossPoints, format.mintick) + "\\n💰 Chốt lời (TP): " + str.tostring(close + takeProfitPoints, format.mintick))
tradesToday += 1
longEntryCount += 1
lastEntryBar := bar_index
// ============================================================================
// SECTION 32: SHORT ENTRY
// ============================================================================
if finalShortSignal
strategy.entry("Short", strategy.short, comment="BB Re-entry Short", alert_message="🔴 VÀO VỊ THẾ SHORT (CNPS73 BB Re-entry)\\n🎯 Giá vào: " + str.tostring(close, format.mintick) + "\\n🛑 Cắt lỗ (SL): " + str.tostring(close + stopLossPoints, format.mintick) + "\\n💰 Chốt lời (TP): " + str.tostring(close - takeProfitPoints, format.mintick))
tradesToday += 1
shortEntryCount += 1
lastEntryBar := bar_index
// ============================================================================
// SECTION 33: ACTIVE RISK LEVELS
// ============================================================================
var float activeLongSL = na
var float activeLongTP = na
var float activeShortSL = na
var float activeShortTP = na
// ============================================================================
// SECTION 34: LONG SL / TP
// ============================================================================
if positionLong
float entryPrice = strategy.position_avg_price
activeLongSL := (entryPrice - stopLossPoints)
activeLongTP := (entryPrice + takeProfitPoints)
strategy.exit("Long Exit", from_entry="Long", stop=activeLongSL, limit=activeLongTP, comment_profit="TP Long", comment_loss="SL Long", alert_profit="💰 CHỐT LỜI LONG (TP HIT)\\n🎯 Giá chốt: " + str.tostring(activeLongTP, format.mintick), alert_loss="🛑 CẮT LỖ LONG (SL HIT)\\n🎯 Giá cắt: " + str.tostring(activeLongSL, format.mintick), disable_alert=disableSLTPAlerts)
// ============================================================================
// SECTION 35: SHORT SL / TP
// ============================================================================
if positionShort
float entryPrice = strategy.position_avg_price
activeShortSL := (entryPrice + stopLossPoints)
activeShortTP := (entryPrice - takeProfitPoints)
strategy.exit("Short Exit", from_entry="Short", stop=activeShortSL, limit=activeShortTP, comment_profit="TP Short", comment_loss="SL Short", alert_profit="💰 CHỐT LỜI SHORT (TP HIT)\\n🎯 Giá chốt: " + str.tostring(activeShortTP, format.mintick), alert_loss="🛑 CẮT LỖ SHORT (SL HIT)\\n🎯 Giá cắt: " + str.tostring(activeShortSL, format.mintick), disable_alert=disableSLTPAlerts)
// ============================================================================
// SECTION 36: POSITION CLEANUP
// ============================================================================
if positionJustClosed
activeLongSL := na
activeLongTP := na
activeShortSL := na
activeShortTP := na
// ============================================================================
// SECTION 37: SESSION END
// ============================================================================
bool finalSessionBar = (currentMinute < sessionEndTotal and currentCloseMinute >= sessionEndTotal)
if finalSessionBar and positionLong
strategy.close("Long", immediately=true, comment="Session End", alert_message="⏰ ĐÓNG VỊ THẾ LONG HẾT PHIÊN (Session End)\\n🎯 Giá đóng: " + str.tostring(close, format.mintick))
if finalSessionBar and positionShort
strategy.close("Short", immediately=true, comment="Session End", alert_message="⏰ ĐÓNG VỊ THẾ SHORT HẾT PHIÊN (Session End)\\n🎯 Giá đóng: " + str.tostring(close, format.mintick))
// ============================================================================
// SECTION 38: BOLLINGER DISPLAY
// ============================================================================
plot(showBollinger ? bbUpper : na, title="Bollinger Upper", color=color.red, linewidth=2)
plot(showBollinger ? bbBasis : na, title="Bollinger Basis", color=color.orange, linewidth=2)
plot(showBollinger ? bbLower : na, title="Bollinger Lower", color=color.green, linewidth=2)
// ============================================================================
// SECTION 39: H1 EMA DISPLAY
// ============================================================================
plot(showH1EMA and useH1EMABias ? h1EMA : na, title="Confirmed H1 EMA", color=color.blue, linewidth=1)
// ============================================================================
// SECTION 40: ACTIVE SL / TP DISPLAY
// ============================================================================
plot(showActiveSLTP and positionLong ? activeLongSL : na, title="Long SL", color=color.red, linewidth=2, style=plot.style_linebr)
plot(showActiveSLTP and positionLong ? activeLongTP : na, title="Long TP", color=color.green, linewidth=2, style=plot.style_linebr)
plot(showActiveSLTP and positionShort ? activeShortSL : na, title="Short SL", color=color.red, linewidth=2, style=plot.style_linebr)
plot(showActiveSLTP and positionShort ? activeShortTP : na, title="Short TP", color=color.green, linewidth=2, style=plot.style_linebr)
// ============================================================================
// SECTION 41: SIGNAL MARKERS
// ============================================================================
plotshape(showSignalMarkers and rawLongSignal, title="BB Long Setup", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny, text="L", textcolor=color.white)
plotshape(showSignalMarkers and rawShortSignal, title="BB Short Setup", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.tiny, text="S", textcolor=color.white)
// ============================================================================
// SECTION 42: DIAGNOSTICS TABLE
// ============================================================================
var table diagnostics = table.new(position.top_right, 2, 20, border_width=1)
if showDiagnostics and barstate.islast
string positionText = (positionLong ? "LONG" : positionShort ? "SHORT" : "FLAT")
table.cell(diagnostics, 0, 0, "CNPS73")
table.cell(diagnostics, 1, 0, timeframe.period)
table.cell(diagnostics, 0, 1, "BB Upper")
table.cell(diagnostics, 1, 1, str.tostring(bbUpper, format.mintick))
table.cell(diagnostics, 0, 2, "BB Basis")
table.cell(diagnostics, 1, 2, str.tostring(bbBasis, format.mintick))
table.cell(diagnostics, 0, 3, "BB Lower")
table.cell(diagnostics, 1, 3, str.tostring(bbLower, format.mintick))
table.cell(diagnostics, 0, 4, "BB Width %")
table.cell(diagnostics, 1, 4, str.tostring(bbWidthPercent, "#.##"))
table.cell(diagnostics, 0, 5, "RSI")
table.cell(diagnostics, 1, 5, str.tostring(rsi, "#.##"))
table.cell(diagnostics, 0, 6, "Below Band")
table.cell(diagnostics, 1, 6, str.tostring(belowBandCount))
table.cell(diagnostics, 0, 7, "Above Band")
table.cell(diagnostics, 1, 7, str.tostring(aboveBandCount))
table.cell(diagnostics, 0, 8, "Bull Re-entries")
table.cell(diagnostics, 1, 8, str.tostring(bullReentryCount))
table.cell(diagnostics, 0, 9, "Bear Re-entries")
table.cell(diagnostics, 1, 9, str.tostring(bearReentryCount))
table.cell(diagnostics, 0, 10, "Long Bases")
table.cell(diagnostics, 1, 10, str.tostring(longBaseCount))
table.cell(diagnostics, 0, 11, "Short Bases")
table.cell(diagnostics, 1, 11, str.tostring(shortBaseCount))
table.cell(diagnostics, 0, 12, "Long Signals")
table.cell(diagnostics, 1, 12, str.tostring(longSignalCount))
table.cell(diagnostics, 0, 13, "Short Signals")
table.cell(diagnostics, 1, 13, str.tostring(shortSignalCount))
table.cell(diagnostics, 0, 14, "Volume OK")
table.cell(diagnostics, 1, 14, volumeOK ? "YES" : "NO")
table.cell(diagnostics, 0, 15, "Width OK")
table.cell(diagnostics, 1, 15, widthOK ? "YES" : "NO")
table.cell(diagnostics, 0, 16, "Long Entries")
table.cell(diagnostics, 1, 16, str.tostring(longEntryCount))
table.cell(diagnostics, 0, 17, "Short Entries")
table.cell(diagnostics, 1, 17, str.tostring(shortEntryCount))
table.cell(diagnostics, 0, 18, "Trades Today")
table.cell(diagnostics, 1, 18, str.tostring(tradesToday) + " / " + str.tostring(maximumTradesPerDay))
table.cell(diagnostics, 0, 19, "Position")
table.cell(diagnostics, 1, 19, positionText)
2. Những khái niệm kỹ thuật cốt lõi trong CNPS73
2.1. Động cơ Bollinger Bands và Hai chế độ Re-entry
Bot tính toán dải Bollinger dựa trên đường trung bình giản đơn bbBasis = ta.sma(bbSource, bbLength) và độ lệch chuẩn bbDeviation = bbMultiplier * ta.stdev(bbSource, bbLength), tạo thành biên trên bbUpper và biên dưới bbLower. Bot chỉ đánh giá tín hiệu khi bandsReady đúng (cả giá trị hiện tại và giá trị nến trước của hai biên đều không bị na).
Người dùng có thể chọn 1 trong 2 chế độ nhận diện signalMode:
- Previous Close Outside (Mặc định):
- Long (
bullCloseReentry): Giá đóng cửa nến trước nằm dưới biên dưới nến trước (close[1] < bbLower[1]) và giá đóng cửa nến hiện tại quay lên bằng hoặc cao hơn biên dưới hiện tại (close >= bbLower). - Short (
bearCloseReentry): Giá đóng cửa nến trước nằm trên biên trên nến trước (close[1] > bbUpper[1]) và giá đóng cửa nến hiện tại quay xuống bằng hoặc thấp hơn biên trên hiện tại (close <= bbUpper).
- Long (
- Wick Rejection:
- Long (
bullWickReentry): Giá thấp nhất nến hiện tại đâm thủng biên dưới (low < bbLower) nhưng đóng cửa rút chân trở lại trong dải (close >= bbLower). - Short (
bearWickReentry): Giá cao nhất nến hiện tại vượt lên trên biên trên (high > bbUpper) nhưng đóng cửa rút chân trở lại trong dải (close <= bbUpper).
- Long (
2.2. Đo lường độ xuyên thủng theo ATR và Độ rộng dải (BB Width %)
Để tránh các tín hiệu chạm biên quá nông hoặc xuất hiện trong vùng thị trường đi ngang quá hẹp/biến động quá sốc, CNPS73 cung cấp hai thước đo định lượng:
- Penetration Distance: Khoảng cách giá vượt ra ngoài biên Bollinger được tính tùy theo
signalMode:- Với
Previous Close Outside:bullPenetration = bbLower[1] - close[1],bearPenetration = close[1] - bbUpper[1]. - Với
Wick Rejection:bullPenetration = bbLower - low,bearPenetration = high - bbUpper. - Nếu bật
requireMinimumPenetration, khoảng cách này phải đạt tối thiểuminimumPenetrationATR * atr(vớiatr = ta.atr(atrLength)).
- Với
- Band Width %: Tính bằng công thức
100.0 * (bbUpper - bbLower) / math.abs(bbBasis). Khi bậtuseWidthFilter, độ rộng dải phải nằm trong khoảng[minimumBBWidthPercent, maximumBBWidthPercent](mặc định0.20%đến10.0%).
2.3. Bộ lọc xác nhận đa tầng (RSI, Volume Spike và H1 EMA Bias)
Bot cho phép kết hợp thêm các bộ lọc tùy chọn nhằm nâng cao xác suất đảo chiều thành công:
- RSI Filter (
useRSIFilter): Tínhta.rsi(close, rsiLength). Lệnh Long yêu cầursi <= longRSIMax(mặc định40.0), lệnh Short yêu cầursi >= shortRSIMin(mặc định60.0). - Volume Filter (
requireVolumeSpike): So sánh khối lượng nến hiện tại với trung bìnhta.sma(volume, volumeAverageLength). Khối lượng phải đạt ít nhấtaverageVolume * volumeSpikeFactor(mặc định1.20lần). - Confirmed H1 EMA Bias (
useH1EMABias): Sử dụngrequest.security(syminfo.tickerid, "60", ...)lấy dữ liệu của nến H1 đã đóng liền trước ([1]) gồmh1EMAvàh1Closeđể tránh repainting (thiết kế cho các khung thời gian dưới 60 phút). Lệnh Long chỉ mở khih1Close > h1EMA, lệnh Short chỉ mở khih1Close < h1EMA.
3. Nguyên lý hoạt động của CNPS73
Quy trình vận hành của CNPS73 Bollinger Band Re-entry trên mỗi nến được thực thi tuần tự qua 5 bước:
- Khởi tạo phiên và bộ đếm ngày: Xác định khóa ngày giao dịch
tradingDayKeytheo múi giờstrategyTimezone(Asia/Ho_Chi_Minh). Khi sang ngày mới (newTradingDay), bộ đếmtradesTodaytự động đặt lại về0. Đồng thời, hệ thống tính toáncurrentMinutevàcurrentCloseMinuteđể kiểm soát khung giờ giao dịch. - Tính toán chỉ báo và phát hiện Setup nền (Base Setups): Tính Bollinger Bands, ATR, RSI, trung bình Volume và H1 EMA (nếu bật). Khi xuất hiện tín hiệu
bullReentryhoặcbearReentry, bot kiểm tra tiếp điều kiện độ xuyên thủng (longPenetrationOK/shortPenetrationOK) và hướng nến (longCandleOK/shortCandleOK) để hình thànhlongBasevàshortBase. - Lọc tín hiệu thô (Raw Signals): Kết hợp Setup nền với các bộ lọc tùy chọn gồm RSI, BB Width %, Volume Spike và H1 EMA Bias để tạo ra
rawLongSignalvàrawShortSignal. - Kiểm tra điều kiện an toàn và gửi lệnh: Xác nhận
canTrade(đang không có vị thế, chưa vượt quámaximumTradesPerDay, hợp lệ về phiên và nến đã đóngbarstate.isconfirmed), đồng thời loại trừ tín hiệu nhiễu hai chiều (ambiguousSignal) và chống trùng lặp trên cùng nến (notEnteredThisBar). Nếu đạt, bot gửi lệnhstrategy.entryvà tăngtradesToday. - Quản trị vị thế và đóng lệnh cuối phiên: Ngay khi vị thế được mở, bot liên tục cập nhật mức SL/TP cố định qua
strategy.exitvà dọn dẹp biến trạng thái khi vị thế đóng. Nếu đến nến cuối phiên (finalSessionBar), mọi vị thế đang mở sẽ bị đóng lập tức bằngstrategy.close.
4. Điều kiện vào lệnh Long và Short của CNPS73
4.1. Điều kiện vào lệnh Long
Lệnh Long (finalLongSignal) chỉ được kích hoạt khi thỏa mãn đồng thời các điều kiện sau:
- Biến
allowLongđúng (tradeDirectionlà"Long"hoặc"Both"). - Thỏa mãn điều kiện Re-entry tăng (
bullReentry):- Nếu
signalMode == "Previous Close Outside": Nến trước đóng dưới biên dưới (close[1] < bbLower[1]) và nến hiện tại đóng cửa quay lại trên biên dưới (close >= bbLower). - Nếu
signalMode == "Wick Rejection": Giá thấp nhất nến hiện tại xuyên xuống dưới biên dưới (low < bbLower) nhưng đóng cửa trên biên dưới (close >= bbLower).
- Nếu
- Thỏa mãn bộ lọc xuyên thủng (
longPenetrationOK, nếu bật):bullPenetration >= minimumPenetrationATR * atr. - Thỏa mãn hướng nến (
longCandleOK, nếu bật):close > open. - Thỏa mãn bộ lọc RSI (
longRSIOK, nếu bật):rsi <= longRSIMax. - Thỏa mãn bộ lọc BB Width % (
widthOK, nếu bật), Volume Spike (volumeOK, nếu bật) và xu hướng H1 (longBiasOKvớih1Close > h1EMA, nếu bật). - Không xảy ra tín hiệu mâu thuẫn (
not ambiguousSignal) và thỏa mãn toàn bộ điều kiệncanTrade+notEnteredThisBar.
4.2. Điều kiện vào lệnh Short
Lệnh Short (finalShortSignal) chỉ được kích hoạt khi thỏa mãn đồng thời các điều kiện sau:
- Biến
allowShortđúng (tradeDirectionlà"Short"hoặc"Both"). - Thỏa mãn điều kiện Re-entry giảm (
bearReentry):- Nếu
signalMode == "Previous Close Outside": Nến trước đóng trên biên trên (close[1] > bbUpper[1]) và nến hiện tại đóng cửa quay lại dưới biên trên (close <= bbUpper). - Nếu
signalMode == "Wick Rejection": Giá cao nhất nến hiện tại vượt lên trên biên trên (high > bbUpper) nhưng đóng cửa dưới biên trên (close <= bbUpper).
- Nếu
- Thỏa mãn bộ lọc xuyên thủng (
shortPenetrationOK, nếu bật):bearPenetration >= minimumPenetrationATR * atr. - Thỏa mãn hướng nến (
shortCandleOK, nếu bật):close < open. - Thỏa mãn bộ lọc RSI (
shortRSIOK, nếu bật):rsi >= shortRSIMin. - Thỏa mãn bộ lọc BB Width % (
widthOK, nếu bật), Volume Spike (volumeOK, nếu bật) và xu hướng H1 (shortBiasOKvớih1Close < h1EMA, nếu bật). - Không xảy ra tín hiệu mâu thuẫn (
not ambiguousSignal) và thỏa mãn toàn bộ điều kiệncanTrade+notEnteredThisBar.
4.3. Điều kiện kiểm soát giao dịch chung
Tất cả các lệnh vào của bot đều phải vượt qua lớp kiểm soát canTrade và bảo vệ tín hiệu:
- Trạng thái vị thế phẳng (
positionFlat):strategy.position_size == 0(kết hợppyramiding=0, không nhồi lệnh). - Giới hạn lệnh/ngày (
dailyTradeLimitOK):tradesToday < maximumTradesPerDay(mặc định tối đa2lệnh/ngày). - Khung giờ giao dịch (
sessionOK¤tCloseMinute < sessionEndTotal): Nếu bậtuseSessionFilter, nến phải mở từ09:00trở đi và đóng trước hoặc bằng14:30; đồng thời thời điểm đóng nến luôn phải trước giờ đóng phiên14:45. - Xác nhận đóng nến (
barstate.isconfirmed): Chỉ vào lệnh khi nến đã đóng cửa hoàn toàn, kết hợpnotEnteredThisBarđể đảm bảo tối đa 1 lệnh trên mỗi thanh nến.
5. Quản trị Stop Loss, Take Profit và Thoát lệnh
5.1. Cơ chế Stop Loss và bộ lọc Risk
CNPS73 sử dụng cơ chế cắt lỗ cố định theo điểm tuyệt đối tính từ giá vào lệnh trung bình (entryPrice = strategy.position_avg_price):
- Với vị thế Long:
activeLongSL = entryPrice - stopLossPoints(mặc định cách giá vào5.0điểm). - Với vị thế Short:
activeShortSL = entryPrice + stopLossPoints(mặc định cách giá vào5.0điểm).
Bot không sử dụng bộ lọc Min–Max Risk theo ATR hay giới hạn lỗ ngày bằng tiền, mà kiểm soát rủi ro tổng thể thông qua stopLossPoints cố định và giới hạn số lệnh maximumTradesPerDay.
5.2. Cơ chế Take Profit, Break Even và Trailing
- Take Profit cố định:
- Với vị thế Long:
activeLongTP = entryPrice + takeProfitPoints(mặc định+15.0điểm). - Với vị thế Short:
activeShortTP = entryPrice - takeProfitPoints(mặc định-15.0điểm).
- Với vị thế Long:
- Break Even / Trailing: Mã nguồn hiện tại không cài đặt cơ chế dời hòa vốn (Break Even) hay Trailing Stop; lệnh được giữ nguyên mức SL/TP cố định cho đến khi chạm mục tiêu hoặc hết phiên.
- Đóng lệnh bắt buộc cuối phiên (Session End): Khi nến rơi vào
finalSessionBar(currentMinute < sessionEndTotal and currentCloseMinute >= sessionEndTotal, mặc định14:45), bot lập tức gọistrategy.close(..., immediately=true, comment="Session End")để đóng toàn bộ vị thế đang nắm giữ, tránh rủi ro qua đêm (overnight/ATO gap).
5.3. Bảng tổng hợp cơ chế bảo vệ vị thế
| Cơ chế thoát lệnh | Điều kiện kích hoạt | Cách tính / Hành động | Ghi chú trong code |
|---|---|---|---|
| Take Profit (TP) | Giá chạm mức giới hạn limit | Long: entryPrice + 15.0Short: entryPrice - 15.0 | strategy.exit với comment_profit |
| Stop Loss (SL) | Giá chạm mức dừng lỗ stop | Long: entryPrice - 5.0Short: entryPrice + 5.0 | strategy.exit với comment_loss |
| Session End | Nến đóng chạm mốc 14:45 (finalSessionBar) | Đóng vị thế ngay lập tức bằng lệnh thị trường | strategy.close(..., immediately=true) |
| Position Cleanup | Khi vị thế vừa chuyển về phẳng (positionJustClosed) | Reset activeLongSL/TP và activeShortSL/TP về na | Xóa đường vẽ SL/TP cũ trên chart |
6. Hướng dẫn cài đặt và đọc bảng Diagnostics trên TradingView
Các bước cài đặt
- Mở biểu đồ hợp đồng tương lai VN30F1M trên TradingView (khuyên dùng khung thời gian intraday dưới 60 phút như M5 hoặc M15 nếu có bật bộ lọc H1 EMA).
- Nhấn vào tab Pine Editor ở thanh công cụ phía dưới màn hình.
- Xóa mã mặc định, sao chép toàn bộ Source Code CNPS73 Bollinger Band Re-entry ở Mục 1 và dán vào Pine Editor.
- Nhấn Save để lưu script, sau đó nhấn Add to chart để đưa chiến lược lên biểu đồ.
- Mở phần Settings (Cài đặt) của chiến lược để điều chỉnh
tradeDirection(Long,Short, hoặcBoth), bậtuseSessionFilternếu muốn giới hạn giờ giao dịch09:00 - 14:30, và bậtshowDiagnosticsđể theo dõi bảng thống kê.
Cách đọc bảng chẩn đoán (Diagnostics Table)
Khi bật showDiagnostics = true, bot sẽ hiển thị một bảng 2 cột x 20 dòng ở góc trên bên phải biểu đồ (position.top_right) tại nến cuối cùng (barstate.islast):
- Dòng 0 (
CNPS73): Hiển thị khung thời gian hiện tại của biểu đồ (timeframe.period). - Dòng 1–5 (
BB Upper,BB Basis,BB Lower,BB Width %,RSI): Giá trị hiện tại của 3 đường Bollinger Bands, độ rộng dải theo phần trăm và chỉ số RSI. - Dòng 6–7 (
Below Band,Above Band): Tổng số lần giá đóng cửa bắt đầu xuyên ra ngoài biên dưới hoặc biên trên trong lịch sử biểu đồ. - Dòng 8–9 (
Bull Re-entries,Bear Re-entries): Số lần xuất hiện tín hiệu giá quay lại vào trong dải Bollinger. - Dòng 10–13 (
Long Bases,Short Bases,Long Signals,Short Signals): Thống kê số lượng setup nền và số lượng tín hiệu thô sau khi đi qua toàn bộ các bộ lọc (RSI, Width, Volume, H1 EMA). - Dòng 14–15 (
Volume OK,Width OK): Trạng tháiYES/NOcủa bộ lọc khối lượng và bộ lọc độ rộng dải ở nến hiện tại. - Dòng 16–19 (
Long Entries,Short Entries,Trades Today,Position): Tổng số lệnh Long/Short đã vào, số lệnh đã thực hiện trong ngày trên giới hạn tối đa (tradesToday / maximumTradesPerDay), và trạng thái vị thế hiện tại (LONG,SHORT, hoặcFLAT).
7. Cách thiết lập cảnh báo tín hiệu giao dịch (Alert)
Để nhận thông báo tự động hoặc kết nối webhook bắn lệnh từ TradingView, bạn thực hiện theo các bước sau:
- Nhấp vào biểu tượng Alert (Đồng hồ báo thức) trên thanh công cụ TradingView.
- Ở mục Condition, chọn chiến lược
CNPS73 BOLLINGER BAND RE-ENTRY. - Ở ô Message, xóa nội dung mặc định và nhập chính xác cú pháp:
{{strategy.order.alert_message}}. - Nếu bạn muốn tắt thông báo khi chạm SL/TP (chỉ nhận thông báo vào lệnh và đóng phiên), hãy tích chọn
Disable SL / TP Alerts?trong phần cài đặt của bot. - Thiết lập kênh nhận thông báo (Popup, App, Email hoặc Webhook URL) và nhấn Create.
Bảng thông điệp Alert của CNPS73
| Sự kiện | Nguồn kích hoạt trong code | Nội dung thông điệp (alert_message / alert_profit / alert_loss) |
|---|---|---|
| Vào lệnh Long | strategy.entry("Long", ...) | 🟢 VÀO VỊ THẾ LONG (CNPS73 BB Re-entry) kèm Giá vào, SL, TP |
| Vào lệnh Short | strategy.entry("Short", ...) | 🔴 VÀO VỊ THẾ SHORT (CNPS73 BB Re-entry) kèm Giá vào, SL, TP |
| Chốt lời Long | strategy.exit("Long Exit", ...) | 💰 CHỐT LỜI LONG (TP HIT) kèm Giá chốt (activeLongTP) |
| Cắt lỗ Long | strategy.exit("Long Exit", ...) | 🛑 CẮT LỖ LONG (SL HIT) kèm Giá cắt (activeLongSL) |
| Chốt lời Short | strategy.exit("Short Exit", ...) | 💰 CHỐT LỜI SHORT (TP HIT) kèm Giá chốt (activeShortTP) |
| Cắt lỗ Short | strategy.exit("Short Exit", ...) | 🛑 CẮT LỖ SHORT (SL HIT) kèm Giá cắt (activeShortSL) |
| Đóng Long hết phiên | strategy.close("Long", ...) | ⏰ ĐÓNG VỊ THẾ LONG HẾT PHIÊN (Session End) kèm Giá đóng |
| Đóng Short hết phiên | strategy.close("Short", ...) | ⏰ ĐÓNG VỊ THẾ SHORT HẾT PHIÊN (Session End) kèm Giá đóng |
Kết luận
Bot CNPS73 - Bollinger Band Re-entry là một giải pháp giao dịch Mean Reversion gọn nhẹ, minh bạch và có tính kỷ luật cao trên thị trường phái sinh VN30F1M. Chiến lược phát huy hiệu quả tốt nhất trong các giai đoạn thị trường đi ngang (sideway) có biên độ dao động rõ ràng hoặc các nhịp quét thanh khoản quá đà quanh biên Bollinger rồi nhanh chóng hồi phục về vùng cân bằng. Nhờ cơ chế khóa SL/TP cố định tỷ lệ 1:3, giới hạn số lệnh trong ngày và tự động đóng vị thế cuối phiên, nhà đầu tư có thể kiểm soát chặt chẽ rủi ro trước các biến động bất ngờ.
Bạn có thể tham khảo thêm các hệ thống giao dịch khác cùng hệ sinh thái: Bot CNPS50 - Trend Analysis V2 và Bot CNPS49 - Daily Open.
Thông tin chỉ mang tính tham khảo, không phải khuyến nghị đầu tư. Kết quả kiểm thử quá khứ không đảm bảo lợi nhuận trong tương lai.
Thông tin trong bài chỉ mang tính tham khảo, không phải khuyến nghị mua bán. Giao dịch phái sinh có rủi ro cao do sử dụng đòn bẩy; nhà đầu tư tự chịu trách nhiệm với quyết định của mình.





