{% extends "base.html" %} {% block title %}{{ symbol }} - Stock Analysis Report{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ symbol }} {% if analysis.company_info.name %} - {{ analysis.company_info.name }} {% endif %}

{% if analysis.company_info.sector %}
{{ analysis.company_info.sector }} {% if analysis.company_info.industry %} | {{ analysis.company_info.industry }} {% endif %}
{% endif %}
{% if analysis.price.current is defined %}
${{ "%.2f"|format(analysis.price.current) }}
{% if analysis.price.change is defined and analysis.price.change_pct is defined %}
{{ "%+.2f"|format(analysis.price.change) }} ({{ "%+.2f"|format(analysis.price.change_pct) }}%)
{% endif %} {% endif %}
Key Metrics
{% if analysis.price is defined %}
Market Cap
{% if analysis.price.market_cap %} ${{ "%.2f"|format(analysis.price.market_cap / 1000000000) }}B {% else %} N/A {% endif %}
52-Week Range
{% if analysis.fifty_two_week_high is defined and analysis.fifty_two_week_low is defined and analysis.fifty_two_week_high is not none and analysis.fifty_two_week_low is not none %} ${{ "%.2f"|format(analysis.fifty_two_week_low) }} - ${{ "%.2f"|format(analysis.fifty_two_week_high) }} {% else %} N/A {% endif %}
Volume (Avg)
{% if analysis.price.volume and analysis.price.avg_volume %} {{ "%.2f"|format(analysis.price.volume / 1000000) }}M / {{ "%.2f"|format(analysis.price.avg_volume / 1000000) }}M {% else %} N/A {% endif %}
{% endif %} {% if analysis.fundamentals is defined %}
P/E Ratio
{% if analysis.fundamentals.pe_ratio %} {{ "%.2f"|format(analysis.fundamentals.pe_ratio) }} {% else %} N/A {% endif %}
P/B Ratio
{% if analysis.fundamentals.pb_ratio %} {{ "%.2f"|format(analysis.fundamentals.pb_ratio) }} {% else %} N/A {% endif %}
Dividend Yield
{% if analysis.fundamentals.dividend_yield %} {{ "%.2f"|format(analysis.fundamentals.dividend_yield * 100) }}% {% else %} 0.00% {% endif %}
{% endif %}
Price Chart
{% if charts.price_chart %} {% else %}

Chart data not available

{% endif %}
Technical Indicators
{% if charts.tech_chart %} {% else %}

Technical indicators not available

{% endif %}
{% if analysis.technical is defined %}

Summary

{% if analysis.technical.rsi is defined %} {% endif %} {% if analysis.technical.macd is defined %} {% endif %} {% if analysis.technical.bollinger_bands is defined %} {% endif %}
Indicator Value Signal
RSI (14) {{ "%.2f"|format(analysis.technical.rsi) }} {% if analysis.technical.rsi > 70 %} Overbought {% elif analysis.technical.rsi < 30 %} Oversold {% else %} Neutral {% endif %}
MACD {{ "%.4f"|format(analysis.technical.macd) }} {% if analysis.technical.macd_signal is defined %} {% if analysis.technical.macd > analysis.technical.macd_signal %} Bullish {% else %} Bearish {% endif %} {% endif %}
Bollinger Bands {% if analysis.technical.bollinger_bands.upper is defined and analysis.technical.bollinger_bands.lower is defined %} {{ "%.2f - %.2f"|format(analysis.technical.bollinger_bands.lower, analysis.technical.bollinger_bands.upper) }} {% else %} N/A {% endif %} {% if analysis.price.current is defined and analysis.technical.bollinger_bands.upper is defined and analysis.technical.bollinger_bands.lower is defined %} {% if analysis.price.current > analysis.technical.bollinger_bands.upper %} Overbought {% elif analysis.price.current < analysis.technical.bollinger_bands.lower %} Oversold {% else %} Neutral {% endif %} {% endif %}
{% endif %}
{% if analysis.recommendation is defined %}
{% if analysis.recommendation.rating == 'Strong Buy' %} {% elif analysis.recommendation.rating == 'Buy' %} {% elif analysis.recommendation.rating == 'Hold' %} {% elif analysis.recommendation.rating == 'Sell' %} {% elif analysis.recommendation.rating == 'Strong Sell' %} {% else %} {% endif %}

{{ analysis.recommendation.rating }}

{{ analysis.recommendation.summary }}

{% endif %} {% if analysis.news is defined and analysis.news|length > 0 %}
Latest News
{% for item in analysis.news[:5] %}
{{ item.date }}
{{ item.summary|truncate(200) }}
{% endfor %}
{% endif %} {% if not is_index %}
Fundamental Analysis
{% if analysis.fundamentals is defined %}

Valuation Metrics

{% for key, value in analysis.fundamentals.get('valuation_metrics', {}).items() %} {% endfor %}
Metric Value
{{ key|replace('_', ' ')|title }} {% if value is number %} {% if key.endswith('_ratio') or key.endswith('_yield') %} {{ "%.2f"|format(value) }} {% else %} ${{ "%.2f"|format(value) }} {% endif %} {% else %} {{ value }} {% endif %}

Financial Health

{% for key, value in analysis.fundamentals.get('financial_health', {}).items() %} {% endfor %}
Metric Value
{{ key|replace('_', ' ')|title }} {% if value is number %} {% if key.endswith('_ratio') or key.endswith('_yield') %} {{ "%.2f"|format(value) }} {% else %} ${{ "%.2f"|format(value) }} {% endif %} {% else %} {{ value }} {% endif %}
{% else %}

Fundamental data not available for this security.

{% endif %}
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}