Thứ Ba, 01/12/202601/12/2026

Hướng Dẫn Sử Dụng Bot CNPS73 - Bollinger Band Re-entry cho VN30F1M

Hướ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.

Hướng dẫn sử dụng Bot CNPS73 cho VN30F1M
Hướng dẫn sử dụng Bot CNPS73 cho VN30F1M
Mục lục
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:

  1. Độ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 Outside hoặc Wick Rejection.
  2. 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.
  3. 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_Minh và đóng vị thế bắt buộc trước khi kết thúc phiên.
  4. 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 codeGiá trị mặc địnhÝ nghĩa
BollingerbbLength20Chu kỳ tính đường trung bình SMA của Bollinger Bands
BollingerbbMultiplier2.0Hệ số nhân độ lệch chuẩn (Standard Deviation)
BollingerbbSourcecloseNguồn giá tính Bollinger Bands
Re-entrysignalMode"Previous Close Outside"Chế độ tín hiệu (Previous Close Outside hoặc Wick Rejection)
Re-entryrequireCandleDirectionfalseYêu cầu nến tín hiệu cùng chiều (nến xanh cho Long, nến đỏ cho Short)
Re-entryrequireMinimumPenetrationfalseYêu cầu mức độ xuyên thủng biên tối thiểu theo ATR
Re-entryminimumPenetrationATR0.10Ngưỡng xuyên thủng tối thiểu tính bằng hệ số ATR
RSIuseRSIFilterfalseBật/tắt bộ lọc RSI
RSIrsiLength / longRSIMax / shortRSIMin14 / 40.0 / 60.0Chu kỳ RSI, ngưỡng RSI tối đa cho Long và tối thiểu cho Short
Band WidthuseWidthFilterfalseBật/tắt bộ lọc độ rộng dải Bollinger (%)
Band WidthminimumBBWidthPercent / maximumBBWidthPercent0.20 / 10.0Biên độ phần trăm BB Width tối thiểu và tối đa cho phép
VolumerequireVolumeSpikefalseYêu cầu có đột biến khối lượng khi vào lệnh
VolumevolumeAverageLength / volumeSpikeFactor20 / 1.20Chu kỳ trung bình Volume và hệ số đột biến tối thiểu
H1 TrenduseH1EMABias / h1EMALengthfalse / 50Bật/tắt lọc xu hướng theo nến H1 đã đóng và chu kỳ EMA H1
ATRatrLength14Chu kỳ tính chỉ báo ATR
Risk ManagementstopLossPoints / takeProfitPoints5.0 / 15.0Mức Stop Loss và Take Profit cố định (tính bằng điểm)
Trade ControlmaximumTradesPerDay2Số lệnh tối đa được phép mở trong một ngày giao dịch
Trade ControltradeDirection"Long"Chiều giao dịch cho phép (Long, Short, Both)
SessionuseSessionFilter / strategyTimezonefalse / "Asia/Ho_Chi_Minh"Bật/tắt lọc phiên vào lệnh và múi giờ chiến lược
SessionsessionStartHour:Minute / lastEntryHour:Minute09:00 / 14:30Giờ bắt đầu phiên và giờ vào lệnh cuối cùng
SessionsessionEndHour:Minute14:45Thời điểm đóng toàn bộ vị thế bắt buộc cuối phiên
Alerts & DisplaydisableSLTPAlerts / showBollinger / showActiveSLTPfalse / true / trueTắt cảnh báo SL/TP, hiển thị dải BB và đường SL/TP
DisplayshowH1EMA / showSignalMarkers / showDiagnosticsfalse / false / falseHiể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).
  • 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).

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ểu minimumPenetrationATR * atr (với atr = ta.atr(atrLength)).
  • Band Width %: Tính bằng công thức 100.0 * (bbUpper - bbLower) / math.abs(bbBasis). Khi bật useWidthFilter, độ rộng dải phải nằm trong khoảng [minimumBBWidthPercent, maximumBBWidthPercent] (mặc định 0.20% đến 10.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ính ta.rsi(close, rsiLength). Lệnh Long yêu cầu rsi <= longRSIMax (mặc định 40.0), lệnh Short yêu cầu rsi >= shortRSIMin (mặc định 60.0).
  • Volume Filter (requireVolumeSpike): So sánh khối lượng nến hiện tại với trung bình ta.sma(volume, volumeAverageLength). Khối lượng phải đạt ít nhất averageVolume * volumeSpikeFactor (mặc định 1.20 lần).
  • Confirmed H1 EMA Bias (useH1EMABias): Sử dụng request.security(syminfo.tickerid, "60", ...) lấy dữ liệu của nến H1 đã đóng liền trước ([1]) gồm h1EMA và h1Close để tránh repainting (thiết kế cho các khung thời gian dưới 60 phút). Lệnh Long chỉ mở khi h1Close > h1EMA, lệnh Short chỉ mở khi h1Close < 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:

  1. Khởi tạo phiên và bộ đếm ngày: Xác định khóa ngày giao dịch tradingDayKey theo múi giờ strategyTimezone (Asia/Ho_Chi_Minh). Khi sang ngày mới (newTradingDay), bộ đếm tradesToday tự động đặt lại về 0. Đồng thời, hệ thống tính toán currentMinute và currentCloseMinute để kiểm soát khung giờ giao dịch.
  2. 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 bullReentry hoặc bearReentry, 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ành longBase và shortBase.
  3. 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 rawLongSignal và rawShortSignal.
  4. 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 đã đóng barstate.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ệnh strategy.entry và tăng tradesToday.
  5. 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.exit và 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ằng strategy.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:

  1. Biến allowLong đúng (tradeDirection là "Long" hoặc "Both").
  2. 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).
  3. Thỏa mãn bộ lọc xuyên thủng (longPenetrationOK, nếu bật): bullPenetration >= minimumPenetrationATR * atr.
  4. Thỏa mãn hướng nến (longCandleOK, nếu bật): close > open.
  5. Thỏa mãn bộ lọc RSI (longRSIOK, nếu bật): rsi <= longRSIMax.
  6. 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 (longBiasOK với h1Close > h1EMA, nếu bật).
  7. 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ện canTrade + 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:

  1. Biến allowShort đúng (tradeDirection là "Short" hoặc "Both").
  2. 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).
  3. Thỏa mãn bộ lọc xuyên thủng (shortPenetrationOK, nếu bật): bearPenetration >= minimumPenetrationATR * atr.
  4. Thỏa mãn hướng nến (shortCandleOK, nếu bật): close < open.
  5. Thỏa mãn bộ lọc RSI (shortRSIOK, nếu bật): rsi >= shortRSIMin.
  6. 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 (shortBiasOK với h1Close < h1EMA, nếu bật).
  7. 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ện canTrade + 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ợp pyramiding=0, không nhồi lệnh).
  • Giới hạn lệnh/ngày (dailyTradeLimitOK): tradesToday < maximumTradesPerDay (mặc định tối đa 2 lệnh/ngày).
  • Khung giờ giao dịch (sessionOK & currentCloseMinute < sessionEndTotal): Nếu bật useSessionFilter, nến phải mở từ 09:00 trở đi và đóng trước hoặc bằng 14:30; đồng thời thời điểm đóng nến luôn phải trước giờ đóng phiên 14: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ợp notEnteredThisBar để đả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ào 5.0 điểm).
  • Với vị thế Short: activeShortSL = entryPrice + stopLossPoints (mặc định cách giá vào 5.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).
  • 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 định 14:45), bot lập tức gọi strategy.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ạtCách tính / Hành độngGhi chú trong code
Take Profit (TP)Giá chạm mức giới hạn limitLong: entryPrice + 15.0
Short: entryPrice - 15.0
strategy.exit với comment_profit
Stop Loss (SL)Giá chạm mức dừng lỗ stopLong: entryPrice - 5.0
Short: entryPrice + 5.0
strategy.exit với comment_loss
Session EndNến đóng chạm mốc 14:45 (finalSessionBar)Đóng vị thế ngay lập tức bằng lệnh thị trườngstrategy.close(..., immediately=true)
Position CleanupKhi vị thế vừa chuyển về phẳng (positionJustClosed)Reset activeLongSL/TP và activeShortSL/TP về naXó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

  1. 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).
  2. Nhấn vào tab Pine Editor ở thanh công cụ phía dưới màn hình.
  3. 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.
  4. Nhấn Save để lưu script, sau đó nhấn Add to chart để đưa chiến lược lên biểu đồ.
  5. Mở phần Settings (Cài đặt) của chiến lược để điều chỉnh tradeDirection (Long, Short, hoặc Both), bật useSessionFilter nếu muốn giới hạn giờ giao dịch 09:00 - 14:30, và bật showDiagnostics để 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ái YES / NO củ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ặc FLAT).

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:

  1. Nhấp vào biểu tượng Alert (Đồng hồ báo thức) trên thanh công cụ TradingView.
  2. Ở mục Condition, chọn chiến lược CNPS73 BOLLINGER BAND RE-ENTRY.
  3. Ở ô Message, xóa nội dung mặc định và nhập chính xác cú pháp: {{strategy.order.alert_message}}.
  4. 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.
  5. 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ệnNguồn kích hoạt trong codeNội dung thông điệp (alert_message / alert_profit / alert_loss)
Vào lệnh Longstrategy.entry("Long", ...)🟢 VÀO VỊ THẾ LONG (CNPS73 BB Re-entry) kèm Giá vào, SL, TP
Vào lệnh Shortstrategy.entry("Short", ...)🔴 VÀO VỊ THẾ SHORT (CNPS73 BB Re-entry) kèm Giá vào, SL, TP
Chốt lời Longstrategy.exit("Long Exit", ...)💰 CHỐT LỜI LONG (TP HIT) kèm Giá chốt (activeLongTP)
Cắt lỗ Longstrategy.exit("Long Exit", ...)🛑 CẮT LỖ LONG (SL HIT) kèm Giá cắt (activeLongSL)
Chốt lời Shortstrategy.exit("Short Exit", ...)💰 CHỐT LỜI SHORT (TP HIT) kèm Giá chốt (activeShortTP)
Cắt lỗ Shortstrategy.exit("Short Exit", ...)🛑 CẮT LỖ SHORT (SL HIT) kèm Giá cắt (activeShortSL)
Đóng Long hết phiênstrategy.close("Long", ...)⏰ ĐÓNG VỊ THẾ LONG HẾT PHIÊN (Session End) kèm Giá đóng
Đóng Short hết phiênstrategy.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.

Đinh Mạnh Đạt

Nhà nghiên cứu định lượng, chuyên sâu về dữ liệu Open Interest và quản trị vị thế.

Bản tin phái sinh mỗi phiên
Nhận bản tin mỗi phiên + Dự báo Nhịp đập phái sinh

Giao dịch & cuộc sống

Xem tất cả →
Cộng đồng