An AI-powered agent that analyzes stock market data and news to predict weekly price targets and recommend option trading strategies.
- Multi-Source Analysis: Combines real-time technical data (YFinance) with latest news sentiment (DuckDuckGo).
- Price Target Prediction: Uses LLM reasoning to estimate probable price ranges for the upcoming week.
- Strategy Recommendations: Suggests specific option strategies (e.g., Calls, Puts, Iron Condors) based on volatility and direction.
- Confidence Scoring: Provides a confidence level and probability assessment for every prediction.
graph TD
A[Start: User Input] -->|Ticker & API Key| B{Validate Inputs}
B -- Invalid --> C[Show Error Message]
B -- Valid --> D[Initialize AI Agent]
subgraph "Agent Workflow"
D -->|Call| E[YFinanceTools]
E -->|Retrieve| F[Price, Fundamentals, Analyst Recs]
D -->|Call| G[DuckDuckGoTools]
G -->|Search| H[News, Sentiment, Catalysts]
F --> I[LLM Analysis & Reasoning]
H --> I
end
I --> J[Generate Prediction & Strategy]
J --> K[Display Detailed Markdown Report]
-
Navigate to the directory:
cd advanced_ai_agents/single_agent_apps/option_recommender -
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit App:
streamlit run option_recommender.py
-
Configure the App:
- Enter your OpenAI API Key in the sidebar.
-
Get Recommendations:
- Enter a stock ticker (e.g.,
NVDA,AAPL). - Click Generate Prediction.
- View the comprehensive analysis, price target, and option strategy.
- Enter a stock ticker (e.g.,
This tool is for educational and research purposes only. Do not use this tool as financial advice. The predictions are generated by an AI model and may be inaccurate. Always do your own due diligence before investing.