{{ subject }}

{% if index_results %}
Market Indices Analysis
{% for index in index_results %} {% set index_name = { '^NSEI': 'NIFTY 50', '^CNXBL': 'NIFTY LargeMidcap 250', '^CRSMID': 'NIFTY Midcap 150', '^CRSSML': 'NIFTY Smallcap 250' }.get(index.symbol, index.name) %} {% endfor %}
Symbol Index Name Close SMA 20 SMA 50 200D MA 1D Change RSI (14)
{{ index.symbol }} {{ index_name }} {% if index.technical_indicators and index.technical_indicators.get('close') is not none %} {{ '%.2f'|format(index.technical_indicators.close|float) }} {% else %} N/A {% endif %} {% if index.technical_indicators and index.technical_indicators.get('sma_20') is not none %} {{ '%.2f'|format(index.technical_indicators.sma_20|float) }} {% else %} N/A {% endif %} {% if index.technical_indicators and index.technical_indicators.get('sma_50') is not none %} {{ '%.2f'|format(index.technical_indicators.sma_50|float) }} {% else %} N/A {% endif %} {% if index.technical_indicators and index.technical_indicators.get('sma_200') is not none %} {{ '%.2f'|format(index.technical_indicators.sma_200|float) }} {% else %} N/A {% endif %} {% set dr = index.technical_indicators.get('daily_return') %} {% if dr is not none %} {% if dr > 0 %}▲{% elif dr < 0 %}▼{% else %}•{% endif %} {{ '%.2f'|format(dr|float) }}% {% else %} N/A {% endif %} {% if index.technical_indicators and index.technical_indicators.get('rsi') is not none %} {{ '%.2f'|format(index.technical_indicators.rsi|float) }} {% else %} N/A {% endif %}
{% endif %} {% if stock_results %}
Stock Analysis Report
{% for stock in stock_results %} {% endfor %} {% for stock in stock_results %} {% endfor %} {% for stock in stock_results %} {% if stock.technical_indicators and stock.technical_indicators.get('daily_return') is not none %} {% set daily_return = stock.technical_indicators.daily_return %} {% else %} {% endif %} {% endfor %} {% for stock in stock_results %} {% endfor %} {% for stock in stock_results %} {% endfor %} {% for stock in stock_results %} {% endfor %} {% for stock in stock_results %} {% endfor %} {% for stock in stock_results %} {% endfor %}
Metric{{ stock.symbol }}
Current Price {% if stock.technical_indicators and stock.technical_indicators.get('close') is not none %} ₹{{ '%.2f'|format(stock.technical_indicators.close|float) }} {% else %} N/A {% endif %}
1D Change {{ '%.2f'|format(daily_return) }}% N/A
RSI (14) {% if stock.technical_indicators.get('rsi') is not none %} {{ '%.2f'|format(stock.technical_indicators.rsi|float) }} {% else %} N/A {% endif %}
50D MA {% if stock.technical_indicators and stock.technical_indicators.get('sma_50') is not none %} ₹{{ '%.2f'|format(stock.technical_indicators.sma_50|float) }} {% else %} N/A {% endif %}
200D MA {% if stock.technical_indicators and stock.technical_indicators.get('sma_200') is not none %} ₹{{ '%.2f'|format(stock.technical_indicators.sma_200|float) }} {% else %} N/A {% endif %}
P/E Ratio {% if stock.fundamental_metrics.get('pe_ratio') is not none %} {{ '%.2f'|format(stock.fundamental_metrics.pe_ratio|float) }} {% else %} N/A {% endif %}
P/B Ratio {% if stock.fundamental_metrics.get('pb_ratio') is not none %} {{ '%.2f'|format(stock.fundamental_metrics.pb_ratio|float) }} {% else %} N/A {% endif %}
Detailed Stock Analysis
{% for stock in stock_results %}
{{ stock.symbol }} {{ stock.metadata.info.longName or stock.symbol }}

Key Metrics

{% for name, value in stock.all_metrics.items() %} {% if value is not none %} {% endif %} {% endfor %}
Metric Value
{{ name }} {% if value is number %}{{ value|round(2) }}{% else %}{{ value }}{% endif %}
{% if stock.analysis %}

Analysis

{{ stock.analysis|safe }}
{% endif %}
{% endfor %}
{% endif %} {% if report_summary %}
Report Summary
{{ report_summary|safe }}
{% endif %} {% if mutual_fund_summaries %}

Mutual Fund Analysis

Detailed Mutual Fund Analysis
{% for fund in mutual_fund_summaries %}
{{ fund.name }} NAV: ₹{{ fund.current_nav|default('N/A') }}

Performance Metrics

Period CAGR Volatility Sharpe Ratio
1 Year {{ fund.cagr_1y }}% {{ fund.annual_volatility }}% {{ fund.sharpe_ratio }}
3 Years {{ fund.cagr_3y }}% - {{ fund.sortino_ratio }}
5 Years {{ fund.cagr_5y }}% - -

Technical Indicators

{% if fund.rsi is defined %} {% endif %} {% if fund['20d_ma'] is defined %} {% endif %} {% if fund['20d_std'] is defined %} {% endif %} {% if fund.support is defined and fund.resistance is defined %} {% endif %} {% if fund.upper_band is defined and fund.lower_band is defined and fund.latest_nav is defined %} {% endif %} {% if fund.golden_cross or fund.death_cross %} {% endif %}
Indicator Value
RSI (14) {{ '%.2f'|format(fund.rsi) }} {% if fund.rsi > 70 %} (Overbought) {% elif fund.rsi < 30 %} (Oversold) {% endif %}
20-Day MA ₹{{ '%.2f'|format(fund['20d_ma']) }} {% if fund.latest_nav %} {% set price_diff = (fund.latest_nav - fund['20d_ma']) / fund['20d_ma'] * 100 %} {% if price_diff > 0 %} ({{ '%.2f'|format(price_diff) }}% above) {% else %} ({{ '%.2f'|format(price_diff|abs) }}% below) {% endif %} {% endif %}
20-Day Std Dev {{ '%.2f'|format(fund['20d_std']) }}
Support Level ₹{{ '%.2f'|format(fund.support) }} {% if fund.distance_to_support_pct is defined %} ({{ '%.2f'|format(fund.distance_to_support_pct) }}% below current) {% endif %}
Resistance Level ₹{{ '%.2f'|format(fund.resistance) }} {% if fund.distance_to_resistance_pct is defined %} ({{ '%.2f'|format(fund.distance_to_resistance_pct) }}% above current) {% endif %}
Bollinger Bands
Upper: ₹{{ '%.2f'|format(fund.upper_band) }}
Middle: ₹{{ '%.2f'|format(fund.upper_band - fund.lower_band) }}
Lower: ₹{{ '%.2f'|format(fund.lower_band) }}
{% if fund.latest_nav > fund.upper_band %}
(Trading above upper band - Overbought)
{% elif fund.latest_nav < fund.lower_band %}
(Trading below lower band - Oversold)
{% endif %}
Moving Average Cross {% if fund.golden_cross %} Golden Cross (Bullish) {% elif fund.death_cross %} Death Cross (Bearish) {% endif %}

Risk Analysis

Max Drawdown
{{ fund.max_drawdown }}%
Standard Deviation
{{ fund.standard_deviation }}%
RSI
{{ fund.rsi }}
{% if fund.chart_paths and fund.chart_paths.analysis_chart_png %}

Performance Chart

Mutual Fund Analysis Chart
{% endif %}
{% endfor %}
{% endif %} {% if report_url %}
View Full Report
{% endif %}