Regime Lab

  • 라이브러리
  • Shipra Gupta
    Shipra Gupta
    저는 Shipra Gupta이며, 수학, 경제학 및 알고리즘 트레이딩 시스템 분야에 강력한 배경을 가진 트레이더이자 퀀트 전략 개발자입니다. 수년간 외환(Forex), 금, 지수, 원자재 및 암호화폐 시장 전반에서 활동하며 일관성, 정밀성 및 체계적인 실행을 목표로 한 데이터 기반 거래 전략 개발에 집중해 왔습니다.
  • 버전: 1.0

RegimeLab – Hidden Markov Model & Market Regime Detection

Most EAs fail because they run the right logic in the wrong regime. RegimeLab tells your EA which regime it is in, using published statistics instead of another moving average.

Features

  • Hidden Markov Model – 2-state Gaussian HMM fitted by Baum-Welch: probability of the turbulent state, state means, volatilities, persistence and expected duration.
  • Hurst exponent – Rescaled-range estimate on any symbol/timeframe or on your own array.
  • Variance ratio z-test – Lo-MacKinlay heteroskedasticity-robust test of momentum vs mean reversion.
  • Efficiency ratio – Kaufman path efficiency from 0 (noise) to 1 (straight line).
  • Volatility percentile – Current Wilder ATR ranked against its own history.
  • Composite label – TREND_UP, TREND_DOWN, MEAN_REVERT, RANDOM or HIGH_VOL in one call.

Quick start

1. Buy and download the library. MetaTrader installs it to MQL5\Libraries\RegimeLab.ex5.
2. Paste the import block below at the top of your EA, indicator or script.
3. Call the functions.

void OnTick()
  {
   int r=RL_Regime(_Symbol,PERIOD_H1,500,1,0.70,1.96);
   if(r==RL_REGIME_HIGH_VOL) return;                 // stand aside
   if(r==RL_REGIME_TREND_UP || r==RL_REGIME_TREND_DOWN) RunTrend(r);
   if(r==RL_REGIME_MEAN_REVERT) RunMeanRevert();
  }

Import block (copy into your code)

#define RL_OK            0
#define RL_ERR_PARAM     1
#define RL_ERR_DATA      2
#define RL_ERR_SYMBOL    3
#define RL_ERR_FIT       4
#define RL_REGIME_UNKNOWN      0
#define RL_REGIME_TREND_UP     1
#define RL_REGIME_TREND_DOWN   2
#define RL_REGIME_MEAN_REVERT  3
#define RL_REGIME_RANDOM       4
#define RL_REGIME_HIGH_VOL     5

#import "RegimeLab.ex5"
int RL_LastError();
double RL_Hurst(const string symbol,const ENUM_TIMEFRAMES tf,const int bars,const int shift);
double RL_HurstArray(const double &series[],const bool is_price);
bool RL_VarianceRatio(const string symbol,const ENUM_TIMEFRAMES tf,const int bars,const int q, const int shift,double &vr,double &z);
double RL_EfficiencyRatio(const string symbol,const ENUM_TIMEFRAMES tf,const int period,const int shift);
double RL_VolPercentile(const string symbol,const ENUM_TIMEFRAMES tf,const int atr_period, const int lookback,const int shift);
double RL_HMMFit(const string symbol,const ENUM_TIMEFRAMES tf,const int bars,const int shift, const int max_iter);
bool RL_HMMParams(const int state,double &mean,double &stdev,double &stay_prob);
double RL_HMMExpectedDuration(const int state);
double RL_HMMLogLikelihood();
int RL_Regime(const string symbol,const ENUM_TIMEFRAMES tf,const int bars,const int shift, const double hivol_prob,const double z_crit);
string RL_RegimeName(const int regime);
#import

Notes

  • Uses completed bars (shift ≥ 1): no repaint, no look-ahead.
  • 64 to 20,000 bars per call; bounded for optimisation.
  • Any symbol and timeframe, so multi-symbol and multi-timeframe filters fit in one EA.

Technical

  • Pure MQL5. No DLL, no WebRequest, no file I/O.
  • Every exported function validates its inputs. RL_LastError() returns the reason for any failed call.
  • Works in the Strategy Tester and live, on any broker, symbol and account currency.

Past performance shown in screenshots is from historical data and does not guarantee future results.

제작자의 제품 더 보기
AMD Po3
Shipra Gupta
AMD Po3 for MetaTrader 5 Accumulation, manipulation, distribution: mapped for you. AMD Po3 is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator maps the reaction zones that matter right now: the nearest areas above and
KN Smart TP SL Signals — EMA 크로스오버 + 스마트 TP/SL KN Smart TP SL Signals 는 MetaTrader 5용 깔끔한 EMA 크로스오버 지표로, 확인된 모든 크로스오버를 완전한 시각적 거래 셋업으로 변환합니다. Entry → Stop Loss → TP1 → TP2 → TP3 수동으로 가격 레벨을 계산할 필요가 없습니다. 핵심 로직 Fast EMA가 Slow EMA를 상향 돌파 → 매수 Fast EMA가 Slow EMA를 하향 돌파 → 매도 신호는 완성된 캔들 에서 확인되므로 현재 형성 중인 캔들에서 발생하는 신호를 방지합니다. 주요 기능 EMA 크로스오버 신호 Fast & Slow EMA 설정 가능 ATR 기반 Stop Loss 설정 가능한 R 배수를 사용하는 TP1 / TP2 / TP3 기본값 1.5 ATR SL / 1R / 2R / 3R TP Entry, SL 및 TP 라인 자동 표시 수익 및 손실 영역
IFVG Sniper Entry Engine — MQL5 마켓플레이스 설명 IFVG Sniper Entry Engine은 스마트 머니 개념(Smart Money Concepts)의 가장 구체적이고 승률이 높은 진입 패턴 중 하나인 인버스 페어 밸류 갭(Inverse Fair Value Gap, IFVG)을 기반으로 정밀하게 설계된 MT5 인디케이터입니다. 차트에 형성되는 모든 가공되지 않은 페어 밸류 갭(FVG)을 백그라운드에서 추적하고, 각각의 인버전(Inversion, 무효화/재탈환) 여부를 모니터링하며, 조건에 부합하는 IFVG가 확인되는 즉시 정확한 SL/TP 거래 레이아웃 및 푸시 알림과 함께 매수(BUY) 또는 매도(SELL) 신호를 발생시킵니다. (과거 신호를 포함한 모든 신호에 적용됩니다.) 작동 원리 캔들이 마감될 때마다 엔진은 새로 형성된 상승 및 하락 페어 밸류 갭을 숨겨진 메모리 풀에 저장합니다. 이는 대부분의 인디케이터가 추적하지 못하는 영역입니다. 저장된 각
Coppock Curve MultiFilter for MetaTrader 5 The classic Coppock curve with modern filters. Coppock Curve MultiFilter is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator plots its oscillator in a separate subwindow with
FREE
Tension Flow Trend — 과거 RR 백테스트 기능이 내장된 다이내믹 HMA 리본 Tension Flow Trend는 헐 이동평균선(HMA) 트렌드 리본, Z-Score 모멘텀 분석, 그리고 시각적 손익비(Risk:Reward) 백테스팅 엔진을 단일 차트 레이어에 결합한 MetaTrader 5용 고급 추세 추종 인지표입니다. 확률이 높은 추세 지속 기회를 식별하도록 설계된 이 지표는 트렌드 설정이 생성되기 전에 기울기가 확인된 HMA 크로스오버와 설정 가능한 시그널 쿨다운(대기 시간)을 모두 요구함으로써 시장 노이즈를 필터링합니다. 유효한 매수(BUY) 또는 매도(SELL) 신호가 발생하면 지표는 진입 가격, ATR(200) 기반 스톱로스(손절매), 손익비 기반 테이크프로핏(익절매) 레벨을 포함한 전체 거래 구조를 차트 위에 자동으로 계산하고 표시합니다. 다이내믹 TP 및 SL 박스는 두 레벨 중 하나에 도달할 때까지 캔들마다 앞으로 연장되어 완료된 모든 거래의 명확한 시
FREE
Adaptive RSI Supertrend for MetaTrader 5 Trend and RSI momentum in one view. Adaptive RSI Supertrend is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator draws one trend line that changes colour with the trend: bull co
FREE
Trend Target Ribbon [BOSWaves] **Trend Target Ribbon [BOSWaves]**는 MetaTrader 5(MQL5)를 위해 설계된 고급 다기능 추세 추종 및 리스크 관리 지표입니다. 부드럽게 평활화된 **Arnaud Legoux Moving Average(ALMA)**를 핵심으로 사용하며, 변동성과 기울기 기반의 확인 필터를 결합하여 시장 추세, 색상으로 구분되는 동적 리본, 그리고 자동화된 다단계 Risk-to-Reward($R$) 거래 목표를 표시합니다. 주요 기능 1. ALMA 추세 리본 및 기울기 필터 ALMA Smoothing Engine: Arnaud Legoux Moving Average 핵심 라인을 사용하여 시장 노이즈에 대한 부드러움을 유지하면서 지연을 줄입니다. Length, Offset, Sigma 파라미터를 조정할 수 있습니다. Volatility & Slope Validation: 표준편차 밴드와 Average True R
FREE
Structure-Anchored VWAP [WAT] **Structure-Anchored VWAP [WAT]**는 MetaTrader 5를 위한 시장 구조 기반 VWAP 지표입니다. 고정된 세션 리셋에만 의존하지 않고 의미 있는 스윙 및 구조적 지점에 VWAP을 앵커링합니다. 시장 구조 + Anchored VWAP + 편차 밴드 + 리테스트 신호 + ATR 기반 트레이드 관리 를 하나의 시각적 프레임워크로 통합합니다. 주요 기능 3가지 앵커 모드 — Swing, Structure, Fast 구조 감지 — HH, HL, LH, LL, EQH, EQL Anchored VWAP — 의미 있는 구조적 움직임을 따라가는 VWAP 편차 밴드 — 선택 가능한 0.5σ 및 2σ 밴드 Premium / Fair Value / Discount 영역 설정 가능한 변위 이후 VWAP 리테스트 신호 구조에 따른 VWAP 상승/하락 컬러링 거래량 스파이크 보호 — 중앙값 거
FREE
Liquidity Intelligence System — MQL5 마켓플레이스 설명 Liquidity Intelligence System은 스마트 머니(Smart Money) 유동성 풀을 매핑하고, 유동성 스윕 후 반전(sweep-and-reverse) 세팅을 감지하며, 16가지 독립 테스트 가능한 시그널 모델을 통해 신뢰도 높은 거래 신호를 생성하는 기관 등급의 MT5 지표입니다. 이 모든 기능이 깔끔한 단일 지표 내에 구현되어 있습니다. 작동 원리 본 엔진은 피벗(Pivot) 기반의 매수측 유동성(BSL) 및 매도측 유동성(SSL) 존(동일 고점(EQH) 및 동일 저점(EQL) 포함)을 감지하여 실시간 유동성 맵을 지속적으로 구축합니다. 가격이 조건에 부합하는 거부 꼬리(rejection wick)를 남기며 유동성 레벨을 스윕(통과)할 때 기본 스윕 신호가 생성됩니다. 이 가공되지 않은 신호는 이후 EMA 트렌드, 페어 밸류 갭(FVG) 존재 여부, 거래량 급증(Volume Sp
Precision Sniper Trader Precision Sniper Trader는 Forex(외환), 골드, 지수, 크립토(암호화폐) 시장 전반에서 깔끔한 차트 실행, 높은 확률의 진입, 그리고 구조화된 거래 관리를 원하는 트레이더를 위해 설계된 전문 트렌드 추종 및 모멘텀 확인 지표입니다. 스나이퍼 스타일(정밀 타격) 접근 방식으로 구축된 이 지표는 EMA 추세 분석, 모멘텀 확인, ATR 기반 동적 타겟, 지능형 신호 필터링을 결합하여 트레이더가 차트의 노이즈와 불필요한 혼잡을 줄이면서 강력한 시장 기회를 식별할 수 있도록 돕습니다. 기존의 단순 크로스오버 시스템과 달리 Precision Sniper Trader는 추세 정렬, 변동성 조정 거래 관리, 깔끔한 실행 시각화에 중점을 두어 스캘핑, 데이트레이딩(인트라데이), 스윙 트레이딩에 모두 적합합니다. 주요 기능 고급 추세 감지 Precision Sniper Trader는 멀티 EMA 구조를 사용하여 다음을 식별합니다: 추
FREE
TrendIQ pro
Shipra Gupta
TrendIQ Pro for MetaTrader 5 Adaptive volatility trend with a trend cloud. TrendIQ Pro is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator draws one trend line that changes colour with the trend: bull colour for long
SQUEEZE MOMENTUM BREAKOUT MT5 보조지표 MetaTrader 5를 위한 전문적인 변동성 압축 및 모멘텀 돌파 트레이딩 시스템 Squeeze Momentum Breakout은 낮은 변동성의 횡보 기간 이후 발생하는 폭발적인 시장 움직임을 포착하도록 설계된 전문 등급의 MT5 돌파 지표입니다. 스캘퍼, 인트라데이(단타) 트레이더, 모멘텀 트레이더를 위해 개발되었으며 변동성 압축, 모멘텀 확인, 거래량 필터링, 구조화된 거래 관리를 하나의 완전한 트레이딩 프레임워크로 결합했습니다. 이 지표는 스퀴즈(압축) 존, 돌파 기회, 추세 확장 단계를 자동으로 식별하며, 체계적인 거래 실행 및 관리를 위해 진입(Entry), 손절(Stop Loss), TP1, TP2, TP3 레벨을 차트 위에 직접 동적으로 그려줍니다. 최적화 대상 시장: XAUUSD (골드) 포렉스(외환) 통화쌍 NASDAQ / US30 크립토(암호화폐) 시장 주요 지수 스캘핑 및 인트라데이 트레이딩 핵심 기
FREE
VOLUME BREAKOUT PRO MT5 보조지표 MetaTrader 5를 위한 전문적인 거래량 확장 및 돌파 트레이딩 시스템 Volume Breakout Pro는 MetaTrader 5 플랫폼을 위해 특별히 개발된 기관 거래 등급(Institutional-grade)의 돌파 트레이딩 지표입니다. 스캘퍼, 인트라데이 트레이더, 모멘텀 돌파 트레이더를 위해 설계되었으며, 비정상적인 거래량 확장과 유동성 불균형으로 인해 발생하는 폭발적인 가격 움직임을 식별하는 데 집중합니다. 이 지표는 다음을 결합합니다: 거래량 가중 오실레이터 (Volume Weighted Oscillator) 로직 피벗 돌파 감지 (Pivot breakout detection) 모멘텀 확장 (Momentum expansion) ATR 기반 거래 위험 관리 동적 돌파 구조 매핑 (Dynamic breakout structure mapping) 이를 통해 전문적인 리스크 관리와 함께 확률이 높은 돌파 기회를 차트 상에
FREE
Meridian Flow — MT5용 Smart Money Structure 지표 Meridian Flow는 Smart Money Concepts (SMC) 및 ICT Price Action 방법론을 사용하는 트레이더를 위해 설계된 MetaTrader 5 지표입니다. 모든 종목과 시간 프레임에서 BOS(Break of Structure) 및 CHoCH(Change of Character)를 자동으로 감지하고, 각 신호에 대해 Entry, Stop Loss, TP1, TP2, TP3를 포함한 완전한 리스크 맵을 표시합니다. 과거 신호도 포함됩니다. 신호는 확인된 종가 캔들에서만 발생합니다. 리페인트 없음. 추측 없음. Meridian Flow가 다른 점 대부분의 구조 지표는 현재 활성화된 거래만 표시합니다. Meridian Flow는 차트의 모든 과거 신호에 대해 SL과 TP 레벨을 표시하며, 각 신호는 고유한 미래 캔들 구간으로 제한됩니다. 이를 통해 실제 자금을 투입하기 전에 다
Adaptive Trend System for MetaTrader 5 A trend line that adapts to volatility. Adaptive Trend System is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator draws one trend line that changes colour with the trend: bull co
Market Path Forecast for MetaTrader 5 Projected price paths from swing statistics. Market Path Forecast is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator detects confirmed swing highs and lows and tracks how price b
FREE
RSI Signal Entries for MetaTrader 5 RSI extremes plus candle confirmation. RSI Signal Entries is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator plots its oscillator in a separate subwindow with clear extreme zones.
FREE
Trident Swing Projector for MetaTrader 5 Quarter-swing projections from ABC structures. Trident Swing Projector is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator detects confirmed swing highs and lows and tracks how
Z-Score Range Boxes Breakout for MetaTrader 5 Statistical extremes boxed, breakouts flagged. Z-Score Range Boxes Breakout is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator tracks the range or channel price is tradin
Precision Sniper Pro for MetaTrader 5 Four pillars: EMA, RSI, MACD and ADX. Precision Sniper Pro is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator watches for its signal condition and waits for the candle to close b
FREE
Stealth Trail Supertrend for MetaTrader 5 A supertrend that adapts its own multiplier. Stealth Trail Supertrend is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator draws one trend line that changes colour with the tre
Fibonacci Path Profile for MetaTrader 5 How price moved after similar retracements. Fibonacci Path Profile is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator detects confirmed swing highs and lows and tracks how pric
Strong Fade Signals for MetaTrader 5 Fade the overextended move, with a score. Strong Fade Signals is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator watches for its signal condition and waits for the candle to close
FREE
Fan Principle Signals for MetaTrader 5 The classic fan principle, as clear signals. Fan Principle Signals is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator detects confirmed swing highs and lows and tracks how price
McGinley Dynamic Fusion for MetaTrader 5 McGinley Dynamic crossovers with ATR levels. McGinley Dynamic Fusion is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator draws one trend line that changes colour with the trend
Liquidity Entry Signals for MetaTrader 5 Entries where liquidity gets taken. Liquidity Entry Signals is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator maps the reaction zones that matter right now: the nearest areas
Cardwell Range Pro for MetaTrader 5 RSI ranges that change with the market regime. Cardwell Range Pro is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator plots its oscillator in a separate subwindow with clear extreme
Adaptive RSI Supertrend for MetaTrader 5 Trend and RSI momentum in one view. Adaptive RSI Supertrend is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator draws one trend line that changes colour with the trend: bull co
Market Structure Target Tracker for MetaTrader 5 Swings, BOS, CHoCH and ATR targets. Market Structure Target Tracker is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator detects confirmed swing highs and lows and track
Smart TrendFlow Pro for MetaTrader 5 Channel breaks with a volatility heatmap. Smart TrendFlow Pro is a MetaTrader 5 indicator built for traders who want clear, rule-based chart reading without clutter. It focuses on one job and does it visibly on your chart, so you can make decisions faster and with more confidence. It works on gold (XAUUSD), forex, indices and crypto, on any timeframe from M5 to D1. How it works The indicator tracks the range or channel price is trading in and highlights per
필터:
리뷰 없음
리뷰 답변