File size: 2,275 Bytes
8a3e273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import streamlit as st

st.set_page_config(
    page_title="NSE Stock Analysis",
    page_icon="📈",
    layout="wide",
    initial_sidebar_state="expanded"
)

# Custom CSS to reduce sidebar width and improve layout
st.markdown("""
<style>
    [data-testid="stSidebar"][aria-expanded="true"] {
        min-width: 200px;
        max-width: 200px;
    }
    [data-testid="stSidebar"][aria-expanded="false"] {
        min-width: 200px;
        margin-left: -200px;
    }
    .css-1d391kg {
        padding-top: 1rem;
    }
    .stApp > header {
        background-color: transparent;
    }
    .news-table {
        font-size: 14px;
        width: 100%;
    }
    .news-table td {
        padding: 8px;
    }
</style>
""", unsafe_allow_html=True)

def main():
    st.title("NSE Stock Analysis Platform")

    st.markdown("""
    Welcome to the NSE Stock Analysis Platform. This tool provides technical analysis and trading signals
    for NSE-listed stocks.

    ### Features:
    - Real-time stock data and technical indicators
    - Interactive charts with multiple timeframes
    - Trading signals based on technical analysis
    - Stock screener with customizable criteria
    - Latest news for NSE stocks
    - AI-powered stock recommendations

    ### Available Tools:
    1. **Stock Analysis**: Detailed technical analysis with multiple indicators
    2. **Stock Screener**: Screen stocks based on technical criteria
    3. **AI Recommendations**: Get AI-powered stock recommendations
    4. **News**: Latest news articles for NSE stocks

    Choose a tool from the sidebar to get started.
    """)

    st.sidebar.title("Navigation")
    page = st.sidebar.radio("Select a Tool", 
                           ["Stock Analysis", "Stock Screener", "AI Recommendations", "News"])

    if page == "Stock Analysis":
        from pages.stock_analysis import stock_analysis_page
        stock_analysis_page()
    elif page == "Stock Screener":
        from pages.stock_screener import stock_screener_page
        stock_screener_page()
    elif page == "AI Recommendations":
        from pages.recommendations import recommendations_page
        recommendations_page()
    else:
        from pages.news import news_page
        news_page()

if __name__ == "__main__":
    main()