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

📊 Market Intelligence

Markov Chains • Moving Averages • News Sentiment

{% if error %} {% endif %} {% if analysis %}

Markov Forecast

{% if analysis.markov %}
Current State
{{ analysis.markov.current_state }}
Predicted State
{{ analysis.markov.predicted_state }}
Probability
{{ analysis.markov.probability }}
Market Bias: {{ analysis.markov.bias }}
State Key:
{% for state in analysis.markov.state_labels %}
{{ state.id }}: {{ state.label }}
{% endfor %}
{% else %}

Insufficient data for Markov analysis.

{% endif %}

Technical Trend

{% if analysis.tech %}
Latest Close
{{ analysis.tech.latest_close }}
SMA 20
{{ analysis.tech.sma_20 }}
SMA 50
{{ analysis.tech.sma_50 }}
Last Crossover
{{ analysis.tech.last_event }}
Trend: {{ analysis.tech.trend }}
{% else %}

Unable to fetch price data.

{% endif %}

News Sentiment

{% if analysis.sentiment %}
Average Sentiment
{{ analysis.sentiment.avg_sentiment }}
Overall Bias: {{ analysis.sentiment.overall }}
Top Headlines
{% for headline in analysis.sentiment.top_headlines %}
{{ headline.title }} {{ headline.polarity }}
{% endfor %}
{% else %}

Unable to fetch news sentiment.

{% endif %}
{% endif %}
{% endblock %}