OPEN-SOURCE SCRIPT
SUHAIBs batvol 3d indication

How it works:
Market is split into 3 regimes → Bull (uptrend), Bear (downtrend), Neutral (range).
Each regime is a sphere.
Loop on sphere = chance of staying in same regime.
Arrow between spheres = chance of switching to another regime.
Bigger loop/arrow = stronger probability.
Direction matters (Bull→Bear ≠ Bear→Bull).
Behind the scenes:
It detects regimes using price returns or 3 custom indicators.
Data is normalized (Z-score) and classified into Bull / Bear / Neutral.
Every bar, it updates a transition matrix (counts & probabilities of switching).
Uses Laplace smoothing so numbers don’t break.
How to read diagram:
Find current sphere (e.g., Neutral).
If loop is big → likely to continue Neutral.
If one outgoing arrow is big → that’s the most likely next regime.
Unique part:
3D animated spheres + arrows with particles show live probability flows.
Can be plugged into algo/backtesting → outputs (Bull=1, Neutral=0, Bear=-1).
👉 In short:
It’s a probability map of regime shifts. The chart tells you if the market will likely stay the same or flip to another state, and which flip is most probable.
Market is split into 3 regimes → Bull (uptrend), Bear (downtrend), Neutral (range).
Each regime is a sphere.
Loop on sphere = chance of staying in same regime.
Arrow between spheres = chance of switching to another regime.
Bigger loop/arrow = stronger probability.
Direction matters (Bull→Bear ≠ Bear→Bull).
Behind the scenes:
It detects regimes using price returns or 3 custom indicators.
Data is normalized (Z-score) and classified into Bull / Bear / Neutral.
Every bar, it updates a transition matrix (counts & probabilities of switching).
Uses Laplace smoothing so numbers don’t break.
How to read diagram:
Find current sphere (e.g., Neutral).
If loop is big → likely to continue Neutral.
If one outgoing arrow is big → that’s the most likely next regime.
Unique part:
3D animated spheres + arrows with particles show live probability flows.
Can be plugged into algo/backtesting → outputs (Bull=1, Neutral=0, Bear=-1).
👉 In short:
It’s a probability map of regime shifts. The chart tells you if the market will likely stay the same or flip to another state, and which flip is most probable.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.