OPEN-SOURCE SCRIPT
Markov Chain [3D] | Fractalyst & SYNC & TRADE | Multi-Timeframe

English Version
Author Credit and Thanks:
This improved Pine Script code is based on the original work by @Fractalyst. Thank you, Fractalyst, for the foundational code and inspiration!
Key Improvements and Differences from Original:
Short-term Movement Inner Sphere: Added dynamic inner sphere animation representing short-term (14-bar) regime probabilities, pulsing when active. Original lacked multi-timeframe distinction; now visualizes both midterm (500-bar) outer sphere and short-term inner sphere.
Probabilities for Short-term and Midterm Movements: Calculated all transition and self-probabilities separately for short-term (14 bars) and midterm (500 bars) lookbacks. Labels show midterm % (short-term % in parentheses). Original used single lookback; now multi-timeframe with independent matrices.
Weights for Each Event: Introduced configurable weights (default 0.1 each) for up to 10 custom indicators in regime detection. Original had no weights; now allows balanced signal combination.
10 External Signals: Expanded to 10 custom input sources (ind1 to ind10) with individual bull/bear thresholds. Original supported 3; now more flexible for complex strategies.
Other differences: Separate matrices/state tracking for each timeframe; enhanced visuals with multi-timeframe offsets; regime detection unchanged but applied per timeframe.
Author Credit and Thanks:
This improved Pine Script code is based on the original work by @Fractalyst. Thank you, Fractalyst, for the foundational code and inspiration!
Key Improvements and Differences from Original:
Short-term Movement Inner Sphere: Added dynamic inner sphere animation representing short-term (14-bar) regime probabilities, pulsing when active. Original lacked multi-timeframe distinction; now visualizes both midterm (500-bar) outer sphere and short-term inner sphere.
Probabilities for Short-term and Midterm Movements: Calculated all transition and self-probabilities separately for short-term (14 bars) and midterm (500 bars) lookbacks. Labels show midterm % (short-term % in parentheses). Original used single lookback; now multi-timeframe with independent matrices.
Weights for Each Event: Introduced configurable weights (default 0.1 each) for up to 10 custom indicators in regime detection. Original had no weights; now allows balanced signal combination.
10 External Signals: Expanded to 10 custom input sources (ind1 to ind10) with individual bull/bear thresholds. Original supported 3; now more flexible for complex strategies.
Other differences: Separate matrices/state tracking for each timeframe; enhanced visuals with multi-timeframe offsets; regime detection unchanged but applied per timeframe.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
📊 SMART MONEY | PRICE ACTION | ICT
🎯 Авторские индикаторы
t.me/SyncAndTradeExperience
📑 Разбор сделок и анализ рынка:
t.me/SyncAndTrade
Donat
Сеть TRC20
TH4nMkQGoVMru55feDLG2spUYvPumabLLe
ByBit UID 133965006
🎯 Авторские индикаторы
t.me/SyncAndTradeExperience
📑 Разбор сделок и анализ рынка:
t.me/SyncAndTrade
Donat
Сеть TRC20
TH4nMkQGoVMru55feDLG2spUYvPumabLLe
ByBit UID 133965006
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
📊 SMART MONEY | PRICE ACTION | ICT
🎯 Авторские индикаторы
t.me/SyncAndTradeExperience
📑 Разбор сделок и анализ рынка:
t.me/SyncAndTrade
Donat
Сеть TRC20
TH4nMkQGoVMru55feDLG2spUYvPumabLLe
ByBit UID 133965006
🎯 Авторские индикаторы
t.me/SyncAndTradeExperience
📑 Разбор сделок и анализ рынка:
t.me/SyncAndTrade
Donat
Сеть TRC20
TH4nMkQGoVMru55feDLG2spUYvPumabLLe
ByBit UID 133965006
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.