Thứ Tư, 02/12/202602/12/2026

Hướng Dẫn Sử Dụng Bot CNPS100 - HTF RSI Regime LTF Trigger V1 cho VN30F1M

Hướng dẫn sử dụng Bot CNPS100 cho VN30F1M
Hướng dẫn sử dụng Bot CNPS100 cho VN30F1M
Mục lục
Mục lục

Trong giao dịch phái sinh VN30F1M đa khung thời gian (Multi-Timeframe), một sai lầm phổ biến là vào lệnh theo tín hiệu khung nhỏ (M5) nhưng lại đi ngược động lượng chính của khung lớn (H1), hoặc lấy dữ liệu khung lớn khi cây nến H1 chưa đóng cửa dẫn đến hiện tượng repaint (tín hiệu biến mất sau khi nến đóng).

CNPS100 HTF RSI REGIME LTF TRIGGER V1 — chiến lược cuối cùng khép lại chuỗi CNPS01–CNPS100 — được thiết kế bằng Pine Script v6 trên TradingView để giải quyết triệt để hai vấn đề này:

  • Xác định Regime đa khung an toàn (No-Repaint): Chỉ sử dụng chỉ số RSI(14) từ cây nến khung lớn (H1) đã đóng cửa hoàn toàn ([1]) để phân chia trạng thái Tăng (RSI ≥ 55), Giảm (RSI ≤ 45) hoặc Trung tính.
  • Kích hoạt lệnh linh hoạt trên khung nhỏ (LTF Trigger): Cho phép chọn 1 trong 4 chế độ vào lệnh dựa trên EMA Reclaim (EMA20) và Structure Breakout (phá vỡ cấu trúc 3 nến trước).
  • Hệ thống bộ lọc tùy chọn đa tầng: Hỗ trợ lọc thêm theo độ dốc RSI/EMA khung lớn, thân nến tín hiệu (Body Ratio ≥ 0.25), khối lượng tương đối, ADX và biên độ ATR.
  • Quản trị rủi ro cố định & kỷ luật phiên: Dừng lỗ 5.0 điểm, chốt lời 15.0 điểm, tối đa 3 lệnh/ngày và tự động đóng vị thế cuối phiên lúc 14:45.

1. CNPS100 HTF RSI Regime LTF Trigger V1 là gì?

CNPS100 V1 là hệ thống giao dịch theo động lượng đa khung thời gian (khuyến nghị ban đầu: biểu đồ M5 kết hợp khung lớn H1 trên VN30F1M), vận hành dựa trên 4 trụ cột:

  • HTF RSI Regime Engine: Đo xung lực trung hạn trên khung 60 phút (H1) bằng RSI(14), đảm bảo khung lớn đang có xu hướng rõ ràng trước khi tìm điểm vào lệnh ở khung nhỏ.
  • Dual LTF Entry Trigger: Kết hợp hai mẫu hình hành động giá kinh điển là EMA Reclaim (chạm hồi về EMA20 rồi cắt lại) và Structure Breakout (phá đỉnh/đáy 3 nến gần nhất).
  • Candle & Context Filters: Kiểm soát chất lượng nến tín hiệu (đúng hướng, Body Ratio ≥ 0.25) cùng tùy chọn lọc thêm EMA50, Volume, ADX, ATR.
  • Fixed SL/TP & Trade Control: Quản trị lệnh chặt chẽ với SL = 5.0 điểm, TP = 15.0 điểm, giới hạn 3 lệnh/ngày, khoảng cách tối thiểu giữa các lệnh và Force Close lúc 14:45.

Bảng thông số mặc định

NhómThông sốGiá trị mặc định
HTF RSI RegimeHigher Timeframe / RSI Length60 (H1) / 14
Ngưỡng RegimeBullish RSI / Bearish RSI≥ 55.0 / ≤ 45.0
Entry TriggerTrigger Mode / LTF Pullback EMAEMA Reclaim or Breakout / EMA20
EMA PullbackLookback / Tolerance / Fresh Cross5 nến / 0.10 ATR / Bật
Structure BreakoutBreak Previous N Candles3 nến
Signal CandleDirectional Candle / Min Body RatioBật / 0.25
Quản trị rủi roStop Loss / Take Profit5.0 điểm / 15.0 điểm
Trade ControlContracts / Max Trades Day / Cooldown3 HĐ / 3 lệnh / 2 nến
Phiên giao dịchEntry Window / Force Close09:15–14:15 / 14:45

Source Code CNPS100 HTF RSI Regime LTF Trigger V1

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="CNPS100 HTF RSI REGIME LTF TRIGGER V1", shorttitle="CNPS100 RSI MTF", 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=false, max_labels_count=300, max_lines_count=300, max_bars_back=5000)

// ============================================================================
// CNPS100 - HTF RSI REGIME + LTF TRIGGER V1
//
// FINAL STRATEGY IN CNPS01-CNPS100 SERIES
//
// CORE IDEA:
//
// Higher Timeframe (HTF):
// Detect bullish and bearish momentum regimes
// using RSI from completed HTF candles.
//
// Lower Timeframe (LTF):
// Enter on an EMA reclaim, structure breakout,
// or either signal.
//
// LONG:
// 1. Confirmed HTF RSI >= bullish threshold.
// 2. LTF generates bullish trigger.
// 3. Optional filters pass.
// 4. Enter LONG.
//
// SHORT:
// 1. Confirmed HTF RSI <= bearish threshold.
// 2. LTF generates bearish trigger.
// 3. Optional filters pass.
// 4. Enter SHORT.
//
// SAFETY:
// - HTF data uses [1] with lookahead_on.
// - No developing HTF RSI values.
// - Only confirmed chart candles trigger entries.
// - No future-looking pivot calculations.
// - Fixed SL / TP.
// - Session and daily trade restrictions.
//
// Recommended initial test:
// VN30F1M on 5-minute chart.
// ============================================================================
// ============================================================================
// 01. HIGHER TIMEFRAME RSI
// ============================================================================
gHTF = "01. HTF RSI Regime"
htf = input.timeframe("60", "Higher Timeframe", group=gHTF)
htfRSILength = input.int(14, "HTF RSI Length", minval=2, maxval=100, group=gHTF)
bullRegimeThreshold = input.float(55.0, "Bullish Regime RSI", minval=50.0, maxval=100.0, step=1.0, group=gHTF)
bearRegimeThreshold = input.float(45.0, "Bearish Regime RSI", minval=0.0, maxval=50.0, step=1.0, group=gHTF)
requireHTFRSISlope = input.bool(false, "Require HTF RSI Slope", group=gHTF)
htfSlopeLookback = input.int(1, "HTF RSI Slope Lookback", minval=1, maxval=20, group=gHTF)

// ============================================================================
// 02. REGIME CONTROL
// ============================================================================
gRegime = "02. Regime Control"
useHTFEMAFilter = input.bool(false, "Use HTF EMA Confirmation", group=gRegime)
htfEMALength = input.int(50, "HTF EMA Length", minval=2, maxval=300, group=gRegime)
useHTFPriceBias = input.bool(true, "Require HTF Close Above/Below EMA", group=gRegime)
useHTFEMASlope = input.bool(false, "Require HTF EMA Slope", group=gRegime)

// ============================================================================
// 03. ENTRY TRIGGER SELECTION
// ============================================================================
gTrigger = "03. Entry Trigger"
triggerMode = input.string("EMA Reclaim or Breakout", "Entry Trigger", options=["EMA Reclaim", "Structure Breakout", "EMA Reclaim or Breakout", "EMA Reclaim and Breakout"], group=gTrigger)
ltEMALength = input.int(20, "LTF Pullback EMA Length", minval=2, maxval=200, group=gTrigger)
pullbackLookback = input.int(5, "Pullback Touch Lookback", minval=1, maxval=50, group=gTrigger)
pullbackToleranceATR = input.float(0.10, "Pullback Touch Tolerance / ATR", minval=0.0, maxval=2.0, step=0.05, group=gTrigger)
requireFreshEMAReclaim = input.bool(true, "Require Fresh EMA Cross", group=gTrigger)

// ============================================================================
// 04. STRUCTURE BREAKOUT
// ============================================================================
gBreakout = "04. LTF Structure Breakout"
breakoutLookback = input.int(3, "Break Previous N Candles", minval=1, maxval=100, group=gBreakout)
useBreakoutBuffer = input.bool(false, "Use Breakout Buffer", group=gBreakout)
breakoutBufferATR = input.float(0.05, "Breakout Buffer / ATR", minval=0.0, maxval=3.0, step=0.05, group=gBreakout)

// ============================================================================
// 05. SIGNAL CANDLE
// ============================================================================
gCandle = "05. Signal Candle"
requireDirectionalCandle = input.bool(true, "Require Bullish/Bearish Candle", group=gCandle)
useBodyFilter = input.bool(true, "Use Minimum Body Ratio", group=gCandle)
minimumBodyRatio = input.float(0.25, "Minimum Body / Candle Range", minval=0.0, maxval=1.0, step=0.05, group=gCandle)
useCloseLocation = input.bool(false, "Use Close Position Filter", group=gCandle)
minimumLongClosePosition = input.float(0.60, "Minimum Long Close Position", minval=0.0, maxval=1.0, step=0.05, group=gCandle)
maximumShortClosePosition = input.float(0.40, "Maximum Short Close Position", minval=0.0, maxval=1.0, step=0.05, group=gCandle)

// ============================================================================
// 06. LTF TREND FILTER
// ============================================================================
gTrend = "06. LTF EMA Trend"
useLTFTrendFilter = input.bool(false, "Use LTF EMA Trend Filter", group=gTrend)
trendEMALength = input.int(50, "LTF Trend EMA Length", minval=2, maxval=300, group=gTrend)
requireTrendEMASlope = input.bool(false, "Require Trend EMA Slope", group=gTrend)
trendSlopeLookback = input.int(3, "EMA Slope Lookback", minval=1, maxval=50, group=gTrend)
useEMADistanceFilter = input.bool(false, "Limit Distance From Entry EMA", group=gTrend)
maximumEMADistanceATR = input.float(2.0, "Maximum EMA Distance / ATR", minval=0.1, step=0.1, group=gTrend)

// ============================================================================
// 07. LTF RSI FILTER
// ============================================================================
gRSI = "07. LTF RSI Filter"
useLTFRSI = input.bool(false, "Use LTF RSI Confirmation", group=gRSI)
ltfRSILength = input.int(14, "LTF RSI Length", minval=2, group=gRSI)
minimumLongRSI = input.float(50.0, "Minimum Long RSI", minval=0.0, maxval=100.0, group=gRSI)
maximumShortRSI = input.float(50.0, "Maximum Short RSI", minval=0.0, maxval=100.0, group=gRSI)

// ============================================================================
// 08. VOLUME FILTER
// ============================================================================
gVolume = "08. Volume Filter"
useVolumeFilter = input.bool(false, "Use Relative Volume", group=gVolume)
volumeLength = input.int(20, "Volume MA Length", minval=2, maxval=200, group=gVolume)
minimumRelativeVolume = input.float(1.0, "Minimum Relative Volume", minval=0.1, step=0.1, group=gVolume)

// ============================================================================
// 09. ADX FILTER
// ============================================================================
gADX = "09. ADX Filter"
useADXFilter = input.bool(false, "Use Minimum ADX", group=gADX)
diLength = input.int(14, "DI Length", minval=2, group=gADX)
adxSmoothing = input.int(14, "ADX Smoothing", minval=2, group=gADX)
minimumADX = input.float(18.0, "Minimum ADX", minval=1.0, group=gADX)
requireDIDirection = input.bool(false, "Require DI Direction", group=gADX)

// ============================================================================
// 10. ATR SETTINGS
// ============================================================================
gATR = "10. ATR Filter"
atrLength = input.int(14, "ATR Length", minval=1, group=gATR)
useRangeFilter = input.bool(false, "Use Candle Range / ATR Filter", group=gATR)
minimumRangeATR = input.float(0.40, "Minimum Range / ATR", minval=0.0, step=0.1, group=gATR)
maximumRangeATR = input.float(3.0, "Maximum Range / ATR", minval=0.1, step=0.1, group=gATR)

// ============================================================================
// 11. RISK MANAGEMENT
// ============================================================================
gRisk = "11. Risk Management"
stopLossPoints = input.float(5.0, "Stop Loss (Points)", minval=0.1, step=0.5, group=gRisk)
takeProfitPoints = input.float(15.0, "Take Profit (Points)", minval=0.1, step=0.5, group=gRisk)
useTimeExit = input.bool(false, "Use Time Exit", group=gRisk)
maximumHoldingBars = input.int(20, "Maximum Holding Bars", minval=1, maxval=200, group=gRisk)

// ============================================================================
// 12. TRADE CONTROL
// ============================================================================
gTrade = "12. Trade Control"
tradeDirection = input.string("Both", "Trade Direction", options=["Long", "Short", "Both"], group=gTrade)
contracts = input.int(3, "Contracts", minval=1, maxval=100, group=gTrade)
maximumTradesPerDay = input.int(3, "Maximum Trades Per Day", minval=1, maxval=20, group=gTrade)
cooldownBars = input.int(2, "Cooldown After Exit", minval=0, maxval=100, group=gTrade)
minimumBarsBetweenEntries = input.int(3, "Minimum Bars Between Entries", minval=0, maxval=100, group=gTrade)
bool allowLong = (tradeDirection == "Long" or tradeDirection == "Both")
bool allowShort = (tradeDirection == "Short" or tradeDirection == "Both")

// ============================================================================
// 13. TRADING SESSION
// ============================================================================
gSession = "13. Trading Session"
tz = input.string("Asia/Ho_Chi_Minh", "Timezone", group=gSession)
useSessionFilter = input.bool(true, "Use Session Filter", group=gSession)
startHour = input.int(9, "Entry Start Hour", minval=0, maxval=23, group=gSession)
startMinute = input.int(15, "Entry Start Minute", minval=0, maxval=59, group=gSession)
lastHour = input.int(14, "Last Entry Hour", minval=0, maxval=23, group=gSession)
lastMinute = input.int(15, "Last Entry Minute", minval=0, maxval=59, group=gSession)
endHour = input.int(14, "Force Close Hour", minval=0, maxval=23, group=gSession)
endMinute = input.int(45, "Force Close Minute", minval=0, maxval=59, group=gSession)

// ============================================================================
// 14. ALERTS
// ============================================================================
gAlerts = "14. Alerts"
disableExitAlerts = input.bool(false, "Disable SL/TP Alerts", group=gAlerts)

// ============================================================================
// 15. DISPLAY
// ============================================================================
gDisplay = "15. Display"
showEntryEMA = input.bool(true, "Show LTF Entry EMA", group=gDisplay)
showTrendEMA = input.bool(false, "Show LTF Trend EMA", group=gDisplay)
showBreakoutChannel = input.bool(false, "Show Breakout Channel", group=gDisplay)
showRegimeBackground = input.bool(false, "Highlight HTF RSI Regime", group=gDisplay)
showTriggerMarkers = input.bool(false, "Show Raw Trigger Markers", group=gDisplay)
showEntryMarkers = input.bool(true, "Show Entry Markers", group=gDisplay)
showSLTP = input.bool(true, "Show Active SL/TP", group=gDisplay)
showDiagnostics = input.bool(false, "Show Diagnostics", group=gDisplay)

// ============================================================================
// 16. SESSION CLOCK
// ============================================================================
int openMinutes = (hour(time, tz) * 60 + minute(time, tz))
int closeMinutes = (hour(time_close, tz) * 60 + minute(time_close, tz))
int entryStartMinutes = (startHour * 60 + startMinute)
int lastEntryMinutes = (lastHour * 60 + lastMinute)
int forceCloseMinutes = (endHour * 60 + endMinute)
bool entrySessionOK = (not useSessionFilter or (openMinutes >= entryStartMinutes and closeMinutes <= lastEntryMinutes))
bool beforeForceClose = (closeMinutes < forceCloseMinutes)
bool forceCloseBar = (openMinutes < forceCloseMinutes and closeMinutes >= forceCloseMinutes)

// ============================================================================
// 17. DAILY RESET
// ============================================================================
int dayKey = (year(time, tz) * 10000 + month(time, tz) * 100 + dayofmonth(time, tz))
bool newDay = (na(dayKey[1]) or dayKey != dayKey[1])
var int tradesToday = 0
if newDay
    tradesToday := 0

// ============================================================================
// 18. TIMEFRAME VALIDATION
// ============================================================================
//
// HTF must be STRICTLY higher than
// the current chart timeframe.
//
// Recommended: Chart M5 / HTF H1.
//
// ============================================================================
bool validHTF = (timeframe.isintraday and timeframe.in_seconds() < timeframe.in_seconds(htf))

// ============================================================================
// 19. CONFIRMED HTF DATA
// ============================================================================
//
// [1] is evaluated on the HTF.
//
// lookahead_on is safe here because
// every requested series is offset to
// a completed HTF candle.
//
// Example:
// On a developing 10:00-11:00 H1 candle,
// the strategy uses the completed
// 09:00-10:00 H1 RSI.
//
// ============================================================================
[htfRSI, htfPreviousRSI, htfEMA, htfPreviousEMA, htfClose] = request.security(syminfo.tickerid, htf, [ta.rsi(close, htfRSILength)[1], ta.rsi(close, htfRSILength)[htfSlopeLookback + 1], ta.ema(close, htfEMALength)[1], ta.ema(close, htfEMALength)[2], close[1]], gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_on)

// ============================================================================
// 20. HTF RSI REGIME
// ============================================================================
bool htfReady = (validHTF and not na(htfRSI))
bool htfBullishRegime = (htfReady and htfRSI >= bullRegimeThreshold)
bool htfBearishRegime = (htfReady and htfRSI <= bearRegimeThreshold)
bool htfNeutralRegime = (htfReady and not htfBullishRegime and not htfBearishRegime)
bool htfRSIRising = (not na(htfPreviousRSI) and htfRSI > htfPreviousRSI)
bool htfRSIFalling = (not na(htfPreviousRSI) and htfRSI < htfPreviousRSI)
bool longRSISlopeOK = (not requireHTFRSISlope or htfRSIRising)
bool shortRSISlopeOK = (not requireHTFRSISlope or htfRSIFalling)

// ============================================================================
// 21. HTF EMA FILTER
// ============================================================================
bool htfEMAUp = (not na(htfPreviousEMA) and htfEMA > htfPreviousEMA)
bool htfEMADown = (not na(htfPreviousEMA) and htfEMA < htfPreviousEMA)
bool longHTFEMAOK = (not useHTFEMAFilter or (not na(htfEMA) and not na(htfClose) and (not useHTFPriceBias or htfClose > htfEMA) and (not useHTFEMASlope or htfEMAUp)))
bool shortHTFEMAOK = (not useHTFEMAFilter or (not na(htfEMA) and not na(htfClose) and (not useHTFPriceBias or htfClose < htfEMA) and (not useHTFEMASlope or htfEMADown)))

// ============================================================================
// 22. FINAL HTF DIRECTION
// ============================================================================
bool longRegimeOK = (htfBullishRegime and longRSISlopeOK and longHTFEMAOK)
bool shortRegimeOK = (htfBearishRegime and shortRSISlopeOK and shortHTFEMAOK)

// ============================================================================
// 23. LTF INDICATORS
// ============================================================================
float atr = ta.atr(atrLength)
float entryEMA = ta.ema(close, ltEMALength)
float trendEMA = ta.ema(close, trendEMALength)
float ltfRSI = ta.rsi(close, ltfRSILength)
float averageVolume = ta.sma(volume[1], volumeLength)
float relativeVolume = (not na(volume) and not na(averageVolume) and averageVolume > 0 ? volume / averageVolume : na)
[diPlus, diMinus, adx] = ta.dmi(diLength, adxSmoothing)
bool atrReady = (not na(atr) and atr > 0)

// ============================================================================
// 24. EMA PULLBACK TOUCH
// ============================================================================
//
// The EMA-reclaim setup checks whether
// price touched the entry EMA recently.
//
// The current bar may form the final
// touch and reclaim.
//
// ============================================================================
float pullbackTolerance = (atrReady ? atr * pullbackToleranceATR : 0.0)
float recentLowestLow = ta.lowest(low, pullbackLookback)
float recentHighestHigh = ta.highest(high, pullbackLookback)
bool longTouch = (not na(recentLowestLow) and recentLowestLow <= entryEMA + pullbackTolerance)
bool shortTouch = (not na(recentHighestHigh) and recentHighestHigh >= entryEMA - pullbackTolerance)

// ============================================================================
// 25. EMA CROSS EVENTS
// ============================================================================
//
// Call crossover/crossunder every bar
// before applying optional filters.
//
// ============================================================================
bool bullishEMACross = ta.crossover(close, entryEMA)
bool bearishEMACross = ta.crossunder(close, entryEMA)
bool longEMACrossOK = (requireFreshEMAReclaim ? bullishEMACross : close > entryEMA)
bool shortEMACrossOK = (requireFreshEMAReclaim ? bearishEMACross : close < entryEMA)
bool bullishEMAReclaim = (longTouch and longEMACrossOK)
bool bearishEMAReclaim = (shortTouch and shortEMACrossOK)

// ============================================================================
// 26. STRUCTURE BREAKOUT LEVELS
// ============================================================================
//
// Previous bars only.
// Current candle is excluded.
//
// ============================================================================
float previousChannelHigh = ta.highest(high[1], breakoutLookback)
float previousChannelLow = ta.lowest(low[1], breakoutLookback)
float breakoutBuffer = (useBreakoutBuffer and atrReady ? atr * breakoutBufferATR : 0.0)

// ============================================================================
// 27. STRUCTURE BREAKOUT SIGNAL
// ============================================================================
bool bullishBreakout = (not na(previousChannelHigh) and close > previousChannelHigh + breakoutBuffer)
bool bearishBreakout = (not na(previousChannelLow) and close < previousChannelLow - breakoutBuffer)

// ============================================================================
// 28. SELECT ENTRY TRIGGER
// ============================================================================
bool longTrigger = (triggerMode == "EMA Reclaim" ? bullishEMAReclaim : triggerMode == "Structure Breakout" ? bullishBreakout : triggerMode == "EMA Reclaim and Breakout" ? bullishEMAReclaim and bullishBreakout : bullishEMAReclaim or bullishBreakout)
bool shortTrigger = (triggerMode == "EMA Reclaim" ? bearishEMAReclaim : triggerMode == "Structure Breakout" ? bearishBreakout : triggerMode == "EMA Reclaim and Breakout" ? bearishEMAReclaim and bearishBreakout : bearishEMAReclaim or bearishBreakout)

// ============================================================================
// 29. CANDLE ANATOMY
// ============================================================================
float candleRange = high - low
float candleBody = math.abs(close - open)
float bodyRatio = (candleRange > 0 ? candleBody / candleRange : 0.0)
float closePosition = (candleRange > 0 ? (close - low) / candleRange : 0.5)
float candleRangeATR = (atrReady ? candleRange / atr : na)
bool bullishCandle = close > open
bool bearishCandle = close < open
bool bodyOK = (not useBodyFilter or bodyRatio >= minimumBodyRatio)
bool longCandleOK = ((not requireDirectionalCandle or bullishCandle) and bodyOK and (not useCloseLocation or closePosition >= minimumLongClosePosition))
bool shortCandleOK = ((not requireDirectionalCandle or bearishCandle) and bodyOK and (not useCloseLocation or closePosition <= maximumShortClosePosition))
bool rangeOK = (not useRangeFilter or (not na(candleRangeATR) and candleRangeATR >= minimumRangeATR and candleRangeATR <= maximumRangeATR))

// ============================================================================
// 30. LTF EMA TREND FILTER
// ============================================================================
bool trendEMAUp = (not na(trendEMA[trendSlopeLookback]) and trendEMA > trendEMA[trendSlopeLookback])
bool trendEMADown = (not na(trendEMA[trendSlopeLookback]) and trendEMA < trendEMA[trendSlopeLookback])
bool longTrendOK = (not useLTFTrendFilter or (close > trendEMA and (not requireTrendEMASlope or trendEMAUp)))
bool shortTrendOK = (not useLTFTrendFilter or (close < trendEMA and (not requireTrendEMASlope or trendEMADown)))
float emaDistanceATR = (atrReady ? math.abs(close - entryEMA) / atr : na)
bool distanceOK = (not useEMADistanceFilter or (not na(emaDistanceATR) and emaDistanceATR <= maximumEMADistanceATR))

// ============================================================================
// 31. LTF RSI CONFIRMATION
// ============================================================================
bool longLTFRSIOK = (not useLTFRSI or (not na(ltfRSI) and ltfRSI >= minimumLongRSI))
bool shortLTFRSIOK = (not useLTFRSI or (not na(ltfRSI) and ltfRSI <= maximumShortRSI))

// ============================================================================
// 32. VOLUME / ADX / DI
// ============================================================================
bool volumeOK = (not useVolumeFilter or (not na(relativeVolume) and relativeVolume >= minimumRelativeVolume))
bool adxOK = (not useADXFilter or (not na(adx) and adx >= minimumADX))
bool longDIOK = (not requireDIDirection or (not na(diPlus) and not na(diMinus) and diPlus > diMinus))
bool shortDIOK = (not requireDIDirection or (not na(diPlus) and not na(diMinus) and diMinus > diPlus))

// ============================================================================
// 33. POSITION / COOLDOWN
// ============================================================================
bool flat = (strategy.position_size == 0)
bool inLong = (strategy.position_size > 0)
bool inShort = (strategy.position_size < 0)
var int lastEntryBar = na
var int lastExitBar = na
bool newClosedTrade = (strategy.closedtrades > nz(strategy.closedtrades[1], 0))
if newClosedTrade
    lastExitBar := bar_index
bool cooldownOK = (na(lastExitBar) or bar_index - lastExitBar > cooldownBars)
bool entrySpacingOK = (na(lastEntryBar) or bar_index - lastEntryBar > minimumBarsBetweenEntries)

// ============================================================================
// 34. LONG BASE SIGNAL
// ============================================================================
bool longBase = (barstate.isconfirmed and validHTF and longRegimeOK and longTrigger and longCandleOK and rangeOK)

// ============================================================================
// 35. SHORT BASE SIGNAL
// ============================================================================
bool shortBase = (barstate.isconfirmed and validHTF and shortRegimeOK and shortTrigger and shortCandleOK and rangeOK)

// ============================================================================
// 36. FINAL FILTERED SIGNALS
// ============================================================================
bool rawLong = (longBase and longTrendOK and distanceOK and longLTFRSIOK and volumeOK and adxOK and longDIOK)
bool rawShort = (shortBase and shortTrendOK and distanceOK and shortLTFRSIOK and volumeOK and adxOK and shortDIOK)

// ============================================================================
// 37. ENTRY GATES
// ============================================================================
bool canTrade = (barstate.isconfirmed and validHTF and htfReady and atrReady and flat and strategy.opentrades == 0 and tradesToday < maximumTradesPerDay and cooldownOK and entrySpacingOK and entrySessionOK and beforeForceClose)
bool ambiguousSignal = (rawLong and rawShort)
bool enterLong = (canTrade and allowLong and rawLong and not ambiguousSignal)
bool enterShort = (canTrade and allowShort and rawShort and not ambiguousSignal)

// ============================================================================
// 38. SL / TP IN TICKS
// ============================================================================
int slTicks = math.max(1, int(math.round(stopLossPoints / syminfo.mintick)))
int tpTicks = math.max(1, int(math.round(takeProfitPoints / syminfo.mintick)))
float effectiveSL = (slTicks * syminfo.mintick)
float effectiveTP = (tpTicks * syminfo.mintick)

// ============================================================================
// 39. DIAGNOSTIC COUNTERS
// ============================================================================
var int bullRegimeBars = 0
var int bearRegimeBars = 0
var int neutralRegimeBars = 0
var int bullishEMATriggers = 0
var int bearishEMATriggers = 0
var int bullishBreakouts = 0
var int bearishBreakouts = 0
var int longTriggerCount = 0
var int shortTriggerCount = 0
var int longBaseCount = 0
var int shortBaseCount = 0
var int filteredLongCount = 0
var int filteredShortCount = 0
var int blockedLongCount = 0
var int blockedShortCount = 0
var int longEntryCount = 0
var int shortEntryCount = 0
var int timeExitCount = 0
var int sessionExitCount = 0

// ============================================================================
// 40. LONG ENTRY
// ============================================================================
if enterLong
    strategy.entry("Long", strategy.long, comment="HTF RSI REGIME LONG", alert_message="🟢 VÀO VỊ THẾ LONG (CNPS100)\n🎯 Giá vào: " + str.tostring(close, format.mintick) + "\n🛑 SL dự kiến: " + str.tostring(close - slTicks * syminfo.mintick, format.mintick) + "\n🎯 TP dự kiến: " + str.tostring(close + tpTicks * syminfo.mintick, format.mintick))
    tradesToday += 1
    longEntryCount += 1
    lastEntryBar := bar_index

// ============================================================================
// 41. SHORT ENTRY
// ============================================================================
if enterShort
    strategy.entry("Short", strategy.short, comment="HTF RSI REGIME SHORT", alert_message="🔴 VÀO VỊ THẾ SHORT (CNPS100)\n🎯 Giá vào: " + str.tostring(close, format.mintick) + "\n🛑 SL dự kiến: " + str.tostring(close + slTicks * syminfo.mintick, format.mintick) + "\n🎯 TP dự kiến: " + str.tostring(close - tpTicks * syminfo.mintick, format.mintick))
    tradesToday += 1
    shortEntryCount += 1
    lastEntryBar := bar_index

// ============================================================================
// 42. UPDATE DIAGNOSTICS
// ============================================================================
if barstate.isconfirmed
    if htfBullishRegime
        bullRegimeBars += 1
    if htfBearishRegime
        bearRegimeBars += 1
    if htfNeutralRegime
        neutralRegimeBars += 1
    if bullishEMAReclaim
        bullishEMATriggers += 1
    if bearishEMAReclaim
        bearishEMATriggers += 1
    if bullishBreakout
        bullishBreakouts += 1
    if bearishBreakout
        bearishBreakouts += 1
    if longTrigger
        longTriggerCount += 1
    if shortTrigger
        shortTriggerCount += 1
    if longBase
        longBaseCount += 1
    if shortBase
        shortBaseCount += 1
    if rawLong
        filteredLongCount += 1
    if rawShort
        filteredShortCount += 1
    if rawLong and not enterLong
        blockedLongCount += 1
    if rawShort and not enterShort
        blockedShortCount += 1

// ============================================================================
// 43. LONG EXIT
// ============================================================================
strategy.exit("Long Exit", from_entry="Long", profit=tpTicks, loss=slTicks, comment_profit="TP Long", comment_loss="SL Long", alert_profit="💰 CHỐT LỜI LONG (TP HIT - CNPS100)\n🎯 Giá chốt: " + str.tostring(close, format.mintick), alert_loss="🛑 CẮT LỖ LONG (SL HIT - CNPS100)\n🎯 Giá cắt: " + str.tostring(close, format.mintick), disable_alert=disableExitAlerts)

// ============================================================================
// 44. SHORT EXIT
// ============================================================================
strategy.exit("Short Exit", from_entry="Short", profit=tpTicks, loss=slTicks, comment_profit="TP Short", comment_loss="SL Short", alert_profit="💰 CHỐT LỜI SHORT (TP HIT - CNPS100)\n🎯 Giá chốt: " + str.tostring(close, format.mintick), alert_loss="🛑 CẮT LỖ SHORT (SL HIT - CNPS100)\n🎯 Giá cắt: " + str.tostring(close, format.mintick), disable_alert=disableExitAlerts)

// ============================================================================
// 45. OPTIONAL TIME EXIT
// ============================================================================
int barsHeld = (strategy.opentrades > 0 ? bar_index - strategy.opentrades.entry_bar_index(0) : 0)
bool timeExit = (useTimeExit and strategy.position_size != 0 and barsHeld >= maximumHoldingBars and barstate.isconfirmed)
if timeExit and not forceCloseBar
    strategy.close_all(immediately=true, comment="Time Exit", alert_message="⏱️ ĐÓNG VỊ THẾ QUÁ THỜI GIAN (Time Exit - CNPS100)\n🎯 Giá đóng: " + str.tostring(close, format.mintick))
    timeExitCount += 1

// ============================================================================
// 46. SESSION FORCE CLOSE
// ============================================================================
if (barstate.isconfirmed and forceCloseBar and strategy.position_size != 0)
    strategy.close_all(immediately=true, comment="Session End", alert_message="⏰ ĐÓNG VỊ THẾ HẾT PHIÊN (Session End - CNPS100)\n🎯 Giá đóng: " + str.tostring(close, format.mintick))
    sessionExitCount += 1

// ============================================================================
// 47. EMA PLOTS
// ============================================================================
plot(showEntryEMA ? entryEMA : na, title="LTF Entry EMA", color=color.orange, linewidth=2)
plot(showTrendEMA ? trendEMA : na, title="LTF Trend EMA", color=color.aqua, linewidth=2)

// ============================================================================
// 48. BREAKOUT CHANNEL
// ============================================================================
plot(showBreakoutChannel ? previousChannelHigh : na, title="LTF Previous High", color=color.new(color.red, 40), linewidth=1, style=plot.style_stepline)
plot(showBreakoutChannel ? previousChannelLow : na, title="LTF Previous Low", color=color.new(color.green, 40), linewidth=1, style=plot.style_stepline)

// ============================================================================
// 49. RSI REGIME BACKGROUND
// ============================================================================
color regimeColor = (htfBullishRegime ? color.new(color.green, 93) : htfBearishRegime ? color.new(color.red, 93) : color.new(color.gray, 96))
bgcolor(showRegimeBackground and htfReady ? regimeColor : na, title="HTF RSI Regime")

// ============================================================================
// 50. RAW TRIGGER MARKERS
// ============================================================================
plotshape(showTriggerMarkers and longTrigger, title="Bullish LTF Trigger", style=shape.circle, location=location.belowbar, color=color.aqua, size=size.tiny, text="TR")
plotshape(showTriggerMarkers and shortTrigger, title="Bearish LTF Trigger", style=shape.circle, location=location.abovebar, color=color.orange, size=size.tiny, text="TR")

// ============================================================================
// 51. ENTRY MARKERS
// ============================================================================
plotshape(showEntryMarkers and enterLong, title="CNPS100 LONG", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="LONG", textcolor=color.white)
plotshape(showEntryMarkers and enterShort, title="CNPS100 SHORT", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="SHORT", textcolor=color.white)

// ============================================================================
// 52. ACTIVE SL / TP
// ============================================================================
float longSL = (inLong ? strategy.position_avg_price - effectiveSL : na)
float longTP = (inLong ? strategy.position_avg_price + effectiveTP : na)
float shortSL = (inShort ? strategy.position_avg_price + effectiveSL : na)
float shortTP = (inShort ? strategy.position_avg_price - effectiveTP : na)
plot(showSLTP ? longSL : na, title="Long SL", color=color.red, linewidth=2, style=plot.style_linebr)
plot(showSLTP ? longTP : na, title="Long TP", color=color.green, linewidth=2, style=plot.style_linebr)
plot(showSLTP ? shortSL : na, title="Short SL", color=color.red, linewidth=2, style=plot.style_linebr)
plot(showSLTP ? shortTP : na, title="Short TP", color=color.green, linewidth=2, style=plot.style_linebr)

// ============================================================================
// 53. DATA WINDOW
// ============================================================================
plot(htfRSI, title="Confirmed HTF RSI", color=color.aqua, display=display.data_window)
plot(htfPreviousRSI, title="Previous HTF RSI", color=color.blue, display=display.data_window)
plot(htfEMA, title="Confirmed HTF EMA", color=color.orange, display=display.data_window)
plot(ltfRSI, title="LTF RSI", color=color.fuchsia, display=display.data_window)
plot(atr, title="ATR", color=color.gray, display=display.data_window)
plot(bodyRatio, title="Candle Body Ratio", color=color.green, display=display.data_window)
plot(relativeVolume, title="Relative Volume", color=color.purple, display=display.data_window)
plot(adx, title="ADX", color=color.blue, display=display.data_window)

// ============================================================================
// 54. DIAGNOSTICS TABLE
// ============================================================================
var table diagnostics = table.new(position.top_right, 2, 26, border_width=1)
if barstate.islast
    if showDiagnostics
        table.cell(diagnostics, 0, 0, "CNPS100 V1")
        table.cell(diagnostics, 1, 0, timeframe.period)
        table.cell(diagnostics, 0, 1, "HTF Valid")
        table.cell(diagnostics, 1, 1, validHTF ? "YES" : "NO")
        table.cell(diagnostics, 0, 2, "HTF RSI")
        table.cell(diagnostics, 1, 2, str.tostring(htfRSI, "#.##"))
        table.cell(diagnostics, 0, 3, "Regime")
        table.cell(diagnostics, 1, 3, htfBullishRegime ? "BULL" : htfBearishRegime ? "BEAR" : htfNeutralRegime ? "NEUTRAL" : "N/A")
        table.cell(diagnostics, 0, 4, "Long Regime OK")
        table.cell(diagnostics, 1, 4, longRegimeOK ? "YES" : "NO")
        table.cell(diagnostics, 0, 5, "Short Regime OK")
        table.cell(diagnostics, 1, 5, shortRegimeOK ? "YES" : "NO")
        table.cell(diagnostics, 0, 6, "Bull Regime Bars")
        table.cell(diagnostics, 1, 6, str.tostring(bullRegimeBars))
        table.cell(diagnostics, 0, 7, "Bear Regime Bars")
        table.cell(diagnostics, 1, 7, str.tostring(bearRegimeBars))
        table.cell(diagnostics, 0, 8, "Neutral Bars")
        table.cell(diagnostics, 1, 8, str.tostring(neutralRegimeBars))
        table.cell(diagnostics, 0, 9, "Bull EMA Triggers")
        table.cell(diagnostics, 1, 9, str.tostring(bullishEMATriggers))
        table.cell(diagnostics, 0, 10, "Bear EMA Triggers")
        table.cell(diagnostics, 1, 10, str.tostring(bearishEMATriggers))
        table.cell(diagnostics, 0, 11, "Bull Breakouts")
        table.cell(diagnostics, 1, 11, str.tostring(bullishBreakouts))
        table.cell(diagnostics, 0, 12, "Bear Breakouts")
        table.cell(diagnostics, 1, 12, str.tostring(bearishBreakouts))
        table.cell(diagnostics, 0, 13, "Long Triggers")
        table.cell(diagnostics, 1, 13, str.tostring(longTriggerCount))
        table.cell(diagnostics, 0, 14, "Short Triggers")
        table.cell(diagnostics, 1, 14, str.tostring(shortTriggerCount))
        table.cell(diagnostics, 0, 15, "Long Bases")
        table.cell(diagnostics, 1, 15, str.tostring(longBaseCount))
        table.cell(diagnostics, 0, 16, "Short Bases")
        table.cell(diagnostics, 1, 16, str.tostring(shortBaseCount))
        table.cell(diagnostics, 0, 17, "Filtered Long")
        table.cell(diagnostics, 1, 17, str.tostring(filteredLongCount))
        table.cell(diagnostics, 0, 18, "Filtered Short")
        table.cell(diagnostics, 1, 18, str.tostring(filteredShortCount))
        table.cell(diagnostics, 0, 19, "Blocked Long")
        table.cell(diagnostics, 1, 19, str.tostring(blockedLongCount))
        table.cell(diagnostics, 0, 20, "Blocked Short")
        table.cell(diagnostics, 1, 20, str.tostring(blockedShortCount))
        table.cell(diagnostics, 0, 21, "Long Entries")
        table.cell(diagnostics, 1, 21, str.tostring(longEntryCount))
        table.cell(diagnostics, 0, 22, "Short Entries")
        table.cell(diagnostics, 1, 22, str.tostring(shortEntryCount))
        table.cell(diagnostics, 0, 23, "Trades Today")
        table.cell(diagnostics, 1, 23, str.tostring(tradesToday) + "/" + str.tostring(maximumTradesPerDay))
        table.cell(diagnostics, 0, 24, "Position")
        table.cell(diagnostics, 1, 24, inLong ? "LONG" : inShort ? "SHORT" : "FLAT")
        table.cell(diagnostics, 0, 25, "Trigger Mode")
        table.cell(diagnostics, 1, 25, triggerMode)
    else
        table.clear(diagnostics, 0, 0, 1, 25)

2. Những khái niệm kỹ thuật cốt lõi trong CNPS100 V1

2.1. Dữ liệu khung lớn (HTF) chống Repaint

Để đảm bảo an toàn khi kiểm thử đa khung, CNPS100 bắt buộc khung thời gian biểu đồ hiện tại phải nhỏ hơn nghiêm ngặt so với htf (validHTF). Khi gọi request.security(), toàn bộ chuỗi dữ liệu khung lớn (RSI, EMA, Close) đều được dịch lùi [1] với lookahead=barmerge.lookahead_on. Nghĩa là trong suốt cây nến H1 đang chạy (ví dụ 10:00–11:00), bot chỉ đọc giá trị RSI của cây nến H1 đã đóng cửa hoàn toàn trước đó (09:00–10:00).

2.2. Phân loại HTF RSI Regime

Từ htfRSI đã xác nhận, bot chia thị trường làm 3 trạng thái:

  • Bullish Regime (htfRSI ≥ 55.0): Chỉ cho phép tìm kiếm lệnh Long.
  • Bearish Regime (htfRSI ≤ 45.0): Chỉ cho phép tìm kiếm lệnh Short.
  • Neutral Regime (45.0 < htfRSI < 55.0): Thị trường thiếu động lượng rõ ràng → bot đứng ngoài.

2.3. Bốn chế độ kích hoạt LTF Trigger

Chế độ (triggerMode)Cách hoạt động trên khung nhỏ (LTF)
EMA Reclaim or Breakout (Mặc định)Vào lệnh khi giá chạm & cắt lại EMA20 HOẶC phá đỉnh/đáy 3 nến trước
EMA ReclaimChỉ vào khi giá có nhịp chạm về vùng EMA20 ± 0.10 ATR trong 5 nến gần nhất rồi cắt lại theo hướng xu hướng
Structure BreakoutChỉ vào khi giá đóng cửa vượt highest(high[1], 3) (Long) hoặc thủng lowest(low[1], 3) (Short)
EMA Reclaim and BreakoutĐòi hỏi đồng thời cả hai điều kiện trên xảy ra trên cùng nến xác nhận

3. Nguyên lý hoạt động của CNPS100 V1

Quy trình xử lý của bot đi qua 4 bước khép kín trên mỗi cây nến đã đóng (barstate.isconfirmed):

  1. Xác nhận Regime khung lớn: Kiểm tra validHTF, htfRSI đã vượt ngưỡng 55 (Long) hoặc dưới 45 (Short), cùng tùy chọn độ dốc RSI và EMA50 khung lớn.
  2. Chờ Trigger khung nhỏ: Theo dõi song song EMA20 Pullback Reclaim và Structure Breakout 3 nến theo chế độ triggerMode đã chọn.
  3. Lọc chất lượng nến & bối cảnh: Kiểm tra nến tín hiệu cùng chiều và có thân nến Body Ratio ≥ 0.25 (cộng thêm các bộ lọc tùy chọn như Trend EMA50, LTF RSI, Relative Volume, ADX, Range/ATR).
  4. Khớp lệnh & Quản trị thoát lệnh: Nếu thỏa mãn cổng kiểm soát (Flat, trong giờ 09:15–14:15, chưa quá 3 lệnh/ngày, qua Cooldown), bot gửi lệnh 3 hợp đồng (lưu ý process_orders_on_close=true) kèm strategy.exit cố định SL 5.0 điểm / TP 15.0 điểm và đóng toàn bộ lúc 14:45.

4. Điều kiện vào lệnh Long và Short của CNPS100 V1

4.1. Điều kiện vào lệnh Long

  1. HTF Regime: htfRSI ≥ 55.0 (và đạt độ dốc RSI / HTF EMA50 nếu bật).
  2. LTF Trigger: Đạt bullishEMAReclaim (giá từng chạm ≤ EMA20 + 0.10 ATR trong 5 nến và vừa cắt lên EMA20) hoặc bullishBreakout (Close > highest(high[1], 3)), tùy theo triggerMode.
  3. Chất lượng nến: Nến tăng (Close > Open) và Body Ratio ≥ 0.25.
  4. Bộ lọc phụ (nếu bật): Đạt Trend EMA50, khoảng cách EMA, LTF RSI, Relative Volume, ADX/DI và Range/ATR.

4.2. Điều kiện vào lệnh Short

  1. HTF Regime: htfRSI ≤ 45.0 (và đạt độ dốc RSI / HTF EMA50 nếu bật).
  2. LTF Trigger: Đạt bearishEMAReclaim (giá từng chạm ≥ EMA20 − 0.10 ATR trong 5 nến và vừa cắt xuống EMA20) hoặc bearishBreakout (Close < lowest(low[1], 3)), tùy theo triggerMode.
  3. Chất lượng nến: Nến giảm (Close < Open) và Body Ratio ≥ 0.25.
  4. Bộ lọc phụ (nếu bật): Thỏa mãn toàn bộ các bộ lọc xu hướng, động lượng và khối lượng tương ứng cho chiều Short.

4.3. Điều kiện kiểm soát giao dịch chung (canTrade)

  • Cây nến hiện tại đã đóng xác nhận (barstate.isconfirmed), không có vị thế mở (Flat) và không đồng thời xuất hiện cả tín hiệu Long và Short (not ambiguousSignal).
  • Nằm trong khung giờ vào lệnh (09:15–14:15, trước mốc 14:45).
  • Tổng số lệnh trong ngày < 3, đã qua Cooldown 2 nến sau khi thoát lệnh và cách lệnh vào trước tối thiểu 3 nến.

5. Quản trị Stop Loss, Take Profit và Thoát lệnh

5.1. Cơ chế Stop Loss và Take Profit theo Tick

Bot quy đổi trực tiếp số điểm rủi ro/lợi nhuận thành bước giá (syminfo.mintick) để đặt lệnh bảo vệ ngay khi khớp:

  • Stop Loss: 5.0 điểm (slTicks = round(5.0 / mintick)).
  • Take Profit: 15.0 điểm (tpTicks = round(15.0 / mintick)), tương ứng tỷ lệ Risk:Reward = 1:3.

5.2. Bảng tổng hợp cơ chế bảo vệ vị thế

Cơ chếMặc địnhVai trò bảo vệ
Fixed Stop Loss5.0 điểmCắt lỗ cố định qua strategy.exit()
Fixed Take Profit15.0 điểmChốt lời mục tiêu 3R qua strategy.exit()
Time ExitTắt (20 nến)Nếu bật, tự đóng lệnh khi giữ quá maximumHoldingBars nến
Force Close14:45Đóng toàn bộ vị thế trước giờ ATC (Session End)

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 đồ VN30F1M trên TradingView (khung khuyến nghị M5, nhỏ hơn khung H1 của htf).
  2. Vào Pine Editor → tạo Strategy mới → sao chép toàn bộ mã nguồn ở Mục 1 dán vào → bấm Save và Add to chart.
  3. Mở Strategy Tester để xem kết quả và bật Show Diagnostics trong phần cài đặt nếu muốn theo dõi bảng thống kê phễu tín hiệu.

Cách đọc bảng chẩn đoán (Diagnostics Table)

Bảng chẩn đoán gồm 26 dòng ở góc trên bên phải giúp bạn theo dõi chi tiết từng khâu lọc lệnh:

  • HTF Valid & HTF RSI & Regime: Kiểm tra khung lớn có hợp lệ không, RSI khung lớn đang là bao nhiêu và trạng thái hiện tại (BULL / BEAR / NEUTRAL).
  • Bull/Bear EMA Triggers & Breakouts: Đếm số lần kích hoạt riêng từng loại tín hiệu trên khung nhỏ.
  • Filtered vs Blocked: Cho biết có bao nhiêu tín hiệu thô đạt chuẩn nhưng bị chặn lại do hết hạn mức ngày, ngoài giờ hoặc đang có vị thế.
  • Trades Today & Position: Số lệnh đã vào trong ngày trên tổng 3 lệnh tối đa và trạng thái vị thế (LONG / SHORT / FLAT).

7. Cách thiết lập cảnh báo tín hiệu giao dịch (Alert)

  1. Trên biểu đồ đã gắn CNPS100 RSI MTF, bấm Create Alert.
  2. Ở mục Condition, chọn Strategy CNPS100 HTF RSI REGIME LTF TRIGGER V1 và sự kiện Order fills only.
  3. Ở ô Message, nhập: {{strategy.order.alert_message}}.

Bảng thông điệp Alert của CNPS100 V1

Nhóm sự kiệnNội dung Alert Message xuất ra
Mở vị thế Long / Short🟢 VÀO VỊ THẾ LONG (CNPS100) / 🔴 VÀO VỊ THẾ SHORT (CNPS100) kèm Giá vào, SL dự kiến, TP dự kiến
Chốt lời (TP)💰 CHỐT LỜI LONG (TP HIT - CNPS100) / 💰 CHỐT LỜI SHORT (TP HIT - CNPS100)
Cắt lỗ (SL)🛑 CẮT LỖ LONG (SL HIT - CNPS100) / 🛑 CẮT LỜI/CẮT LỖ SHORT (SL HIT - CNPS100)
Hết giờ giữ lệnh⏱️ ĐÓNG VỊ THẾ QUÁ THỜI GIAN (Time Exit - CNPS100)
Đóng cuối phiên⏰ ĐÓNG VỊ THẾ HẾT PHIÊN (Session End - CNPS100)

Kết luận

CNPS100 HTF RSI REGIME LTF TRIGGER V1 là mảnh ghép hoàn thiện cho chuỗi bot CNPS01–CNPS100, kết hợp sự chắc chắn của bộ lọc động lượng đa khung không repaint (H1 RSI) với sự linh hoạt của EMA20 Reclaim & Structure Breakout trên khung M5 cùng tỷ lệ Risk:Reward 1:3 (5 điểm SL / 15 điểm TP).

Bạn có thể tham khảo thêm các hệ thống giao dịch khác trên Phái Sinh Online như Bot CNPS50 - Trend Analysis V2 hoặc Bot CNPS49 - Daily Open để kết hợp đa dạng hóa chiến lược theo từng trạng thái thị trường.

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