OPEN-SOURCE SCRIPT
MTF Trend Classifier CORE V1 Public - Regime DB Base

# MTF Trend Classifier CORE V1 Public
## 🇺🇸 English
### Trend First. Pattern Second. Context Matters.
Most trading strategies perform well only under specific market conditions.
Instead of searching for one strategy that works everywhere, this project starts with a different idea:
"Classify the market trend first, then study the patterns inside that trend."
This indicator is designed as a market regime analysis tool rather than an automatic buy/sell signal generator.
It attempts to classify the market using Multi-Timeframe EMA structures before interpreting chart patterns.
----------------------------------------
Current Research
----------------------------------------
• Higher Timeframe Trend Classification
• Multi-Timeframe EMA Structure
• EMA Expansion / Compression
• Trend Persistence
• Trend Transition Detection
• Pattern Database Research
----------------------------------------
Basic Usage
----------------------------------------
LONG MODE
• Only look for Long opportunities.
• Ignore Short opportunities.
• Wait for pullbacks toward EMA28 or EMA93 before making trading decisions.
SHORT MODE
• Only look for Short opportunities.
• Ignore Long opportunities.
• Wait for rallies toward EMA28 or EMA93 before making trading decisions.
This indicator is NOT an automatic buy/sell system.
Its purpose is to classify market context first and then analyze recurring patterns inside each trend.
----------------------------------------
Project Goal
----------------------------------------
Rather than predicting individual candles,
this project studies the market in the following order:
Trend
↓
Structure
↓
Pattern
The same chart pattern can have completely different meanings depending on the higher timeframe trend.
This project is an ongoing research to determine whether identifying the market regime first improves pattern interpretation.
----------------------------------------
Current Status
----------------------------------------
This is an experimental research project.
Feedback, ideas and constructive discussions are always welcome.
If you are interested in regime analysis, EMA behavior or pattern research, feel free to join the discussion.
==================================================================
## 🇰🇷 한국어
### 추세를 먼저, 패턴은 그 다음.
대부분의 매매 전략은 특정 시장에서는 잘 맞지만,
다른 시장에서는 쉽게 무너집니다.
저는 이런 고민에서 시작했습니다.
"모든 시장에서 통하는 하나의 전략을 찾기보다,
먼저 현재 시장의 추세를 분류하고,
그 안에서 패턴과 전략을 적용하면 어떨까?"
이 스크립트는 매수·매도 신호를 만드는 것이 목적이 아니라,
멀티 타임프레임 EMA 구조를 이용하여
현재 시장의 추세(Context)를 먼저 분석하는 연구용 프로젝트입니다.
----------------------------------------
현재 연구 내용
----------------------------------------
• 4시간 추세 분류
• 멀티 타임프레임 EMA 구조 분석
• EMA 수렴 / 확산
• 추세 지속 여부
• 추세 전환 후보 탐색
• 패턴 데이터베이스 연구
----------------------------------------
기본 사용법
----------------------------------------
🟢 롱 모드
• 롱만 고려합니다.
• 숏은 무시합니다.
• EMA28 또는 EMA93 눌림 이후 진입 여부를 판단합니다.
🔴 숏 모드
• 숏만 고려합니다.
• 롱은 무시합니다.
• EMA28 또는 EMA93 반등 이후 진입 여부를 판단합니다.
이 스크립트는 자동 매수·매도 시스템이 아닙니다.
먼저 시장의 방향을 분류한 뒤,
그 안에서 반복되는 패턴을 연구하기 위한 도구입니다.
----------------------------------------
프로젝트 목표
----------------------------------------
캔들 하나를 예측하는 것이 아니라
추세
↓
구조
↓
패턴
순서로 시장을 이해하는 것을 목표로 합니다.
같은 패턴이라도
상승추세인지,
하락추세인지,
횡보인지에 따라 의미가 달라질 수 있다고 생각합니다.
이 프로젝트는
"먼저 추세를 분류하고,
그 안에서 패턴을 해석할 수 있는가?"
를 연구하기 위한 프로젝트입니다.
----------------------------------------
현재 상태
----------------------------------------
현재도 계속 연구 및 검증을 진행 중입니다.
좋은 아이디어,
개선 의견,
건설적인 토론은 언제든지 환영합니다.
같이 더 좋은 방향으로 발전시켜 나갈 수 있으면 좋겠습니다.
## 🇺🇸 English
### Trend First. Pattern Second. Context Matters.
Most trading strategies perform well only under specific market conditions.
Instead of searching for one strategy that works everywhere, this project starts with a different idea:
"Classify the market trend first, then study the patterns inside that trend."
This indicator is designed as a market regime analysis tool rather than an automatic buy/sell signal generator.
It attempts to classify the market using Multi-Timeframe EMA structures before interpreting chart patterns.
----------------------------------------
Current Research
----------------------------------------
• Higher Timeframe Trend Classification
• Multi-Timeframe EMA Structure
• EMA Expansion / Compression
• Trend Persistence
• Trend Transition Detection
• Pattern Database Research
----------------------------------------
Basic Usage
----------------------------------------
LONG MODE
• Only look for Long opportunities.
• Ignore Short opportunities.
• Wait for pullbacks toward EMA28 or EMA93 before making trading decisions.
SHORT MODE
• Only look for Short opportunities.
• Ignore Long opportunities.
• Wait for rallies toward EMA28 or EMA93 before making trading decisions.
This indicator is NOT an automatic buy/sell system.
Its purpose is to classify market context first and then analyze recurring patterns inside each trend.
----------------------------------------
Project Goal
----------------------------------------
Rather than predicting individual candles,
this project studies the market in the following order:
Trend
↓
Structure
↓
Pattern
The same chart pattern can have completely different meanings depending on the higher timeframe trend.
This project is an ongoing research to determine whether identifying the market regime first improves pattern interpretation.
----------------------------------------
Current Status
----------------------------------------
This is an experimental research project.
Feedback, ideas and constructive discussions are always welcome.
If you are interested in regime analysis, EMA behavior or pattern research, feel free to join the discussion.
==================================================================
## 🇰🇷 한국어
### 추세를 먼저, 패턴은 그 다음.
대부분의 매매 전략은 특정 시장에서는 잘 맞지만,
다른 시장에서는 쉽게 무너집니다.
저는 이런 고민에서 시작했습니다.
"모든 시장에서 통하는 하나의 전략을 찾기보다,
먼저 현재 시장의 추세를 분류하고,
그 안에서 패턴과 전략을 적용하면 어떨까?"
이 스크립트는 매수·매도 신호를 만드는 것이 목적이 아니라,
멀티 타임프레임 EMA 구조를 이용하여
현재 시장의 추세(Context)를 먼저 분석하는 연구용 프로젝트입니다.
----------------------------------------
현재 연구 내용
----------------------------------------
• 4시간 추세 분류
• 멀티 타임프레임 EMA 구조 분석
• EMA 수렴 / 확산
• 추세 지속 여부
• 추세 전환 후보 탐색
• 패턴 데이터베이스 연구
----------------------------------------
기본 사용법
----------------------------------------
🟢 롱 모드
• 롱만 고려합니다.
• 숏은 무시합니다.
• EMA28 또는 EMA93 눌림 이후 진입 여부를 판단합니다.
🔴 숏 모드
• 숏만 고려합니다.
• 롱은 무시합니다.
• EMA28 또는 EMA93 반등 이후 진입 여부를 판단합니다.
이 스크립트는 자동 매수·매도 시스템이 아닙니다.
먼저 시장의 방향을 분류한 뒤,
그 안에서 반복되는 패턴을 연구하기 위한 도구입니다.
----------------------------------------
프로젝트 목표
----------------------------------------
캔들 하나를 예측하는 것이 아니라
추세
↓
구조
↓
패턴
순서로 시장을 이해하는 것을 목표로 합니다.
같은 패턴이라도
상승추세인지,
하락추세인지,
횡보인지에 따라 의미가 달라질 수 있다고 생각합니다.
이 프로젝트는
"먼저 추세를 분류하고,
그 안에서 패턴을 해석할 수 있는가?"
를 연구하기 위한 프로젝트입니다.
----------------------------------------
현재 상태
----------------------------------------
현재도 계속 연구 및 검증을 진행 중입니다.
좋은 아이디어,
개선 의견,
건설적인 토론은 언제든지 환영합니다.
같이 더 좋은 방향으로 발전시켜 나갈 수 있으면 좋겠습니다.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.