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.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
📊 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
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
📊 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
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。