{% extends 'base.html' %} {% load static %} {% block content %}

Markov Chain & SMA Tool

Analyse daily bias with statistical Markov probabilities and SMA crossovers.

{% csrf_token %}
Loading...
Analysing market data...
{% if history %}
Recent: {% for h in history %}
{% csrf_token %}
{% endfor %}
{% endif %}
{% if analysis %}

{{ analysis.symbol }}

{{ analysis.latest_date }}

LATEST PRICE

${{ analysis.latest_price }}

MARKOV PREDICTION

{{ analysis.predicted_state }}

Probability: {{ analysis.probability }}

CURRENT STATE

{{ analysis.current_state }}

TREND DIRECTION

{{ analysis.trend }}

SMA20: {{ analysis.sma20 }} | SMA50: {{ analysis.sma50 }}

Markov Transition Matrix
{% for name in analysis.state_names %} {% endfor %} {% for row in analysis.matrix %} {% for prob in row %} {% endfor %} {% endfor %}
From \ To{{ forloop.counter0 }}
{{ forloop.counter0 }}{{ prob|floatformat:2 }}
Bin Definitions (Standard Deviation)
0 Very Big Drop (≤ -2σ)
1 Big Drop (-2σ to -1σ)
2 Small Drop (-1σ to mean)
3 Small Rise (mean to +1σ)
4 Big Rise (+1σ to +2σ)
5 Very Big Rise (> +2σ)
SMA 20/50 Crossovers
{% for cross in analysis.crossovers %} {% empty %} {% endfor %}
Date Price Event
{{ cross.Date }} {{ cross.Price }} {{ cross.Type }}
No recent crossovers detected.
Interactive Candlestick Chart (100d)
{% endif %} {% if messages %}
{% for message in messages %} {% endfor %}
{% endif %}
{% endblock %}