refactor: Update strategy guide with Monte Carlo and SunnyBands focus

This commit is contained in:
Bobby (aider) 2025-02-17 16:01:51 -08:00
parent 2dda835a3f
commit f81e82d171

View File

@ -6,17 +6,21 @@ def strategy_guide_page():
# Pre-Market Section # Pre-Market Section
with st.expander("1. Pre-Market Preparation (Night Before)", expanded=True): with st.expander("1. Pre-Market Preparation (Night Before)", expanded=True):
st.markdown(""" st.markdown("""
* Run SunnyBands Screener (Daily Timeframe) * Run Screeners:
- SunnyBands Screener
- Heikin Ashi Screener
* Review Each Chart For:
- Volume patterns
- Trend direction
- SunnyBands indicator alignment
* Add strong setups to watchlist * Add strong setups to watchlist
* Focus on: * For each watchlist stock:
- Stocks near key SunnyBands levels - Use Monte Carlo Position Calculator
- SMA crossovers - Pre-calculate optimal position sizes
- RSI confirmation - Note potential entry zones
* Mark key levels: * Set price alerts for:
- Support - Entry zones
- Resistance - Key SunnyBands levels
- Potential breakout zones
* Set price alerts
""") """)
# Morning Trading Section # Morning Trading Section
@ -25,21 +29,26 @@ def strategy_guide_page():
**Objective:** Capture early momentum plays **Objective:** Capture early momentum plays
**Best Setups:** **Best Setups:**
1. Gap and Go 1. SunnyBands 15-Minute Setups
- Stock gaps up with high volume - Clear band crossovers
- Breaks pre-market high - Volume confirmation
2. Opening Range Breakout (ORB) - Trend alignment
- 5-15 min consolidation 2. Heikin Ashi Confirmation
- Clean breakout - Strong candle patterns
3. Pullback to Key Support - Matches SunnyBands direction
- Dips to major MA or VWAP 3. Volume-Based Entry
- Shows bounce potential - Above average volume
- Clear direction
**Rules:** **Rules:**
* Focus on 2x+ relative volume * Use Monte Carlo simulator for each entry:
* Tight stops (1-2% max) - Calculate optimal stop loss
* Partial exits at 3-5% - Determine target price
* Avoid chasing gaps - Set position size
* Set firm stop loss orders
* Place alerts at target prices
* When target alert hits:
- Switch to trailing stop loss
""") """)
# Midday Trading Section # Midday Trading Section
@ -48,43 +57,56 @@ def strategy_guide_page():
**Objective:** Identify clear trends for swing trades **Objective:** Identify clear trends for swing trades
**Best Setups:** **Best Setups:**
1. Trend Continuation 1. SunnyBands Continuation
- Holding above VWAP/SMA50 - Holding within bands
- Shows consistent strength - Strong volume support
2. Reversal Entry 2. Band Reversal Entry
- RSI/MACD divergence - Clear band crossover
- Near SunnyBands lower level - Volume confirmation
3. Breakout Retest 3. Momentum Continuation
- Morning breakout - Strong Heikin Ashi signals
- Clean retest of level - Band support/resistance tests
**Rules:** **Rules:**
* Confirm morning runners * Recheck Monte Carlo projections
* Wait for pattern confirmation * Adjust stops based on new calculations
* Clear stop loss placement * Monitor volume for trend strength
* Focus on SunnyBands levels * Keep trailing stops on winning positions
""") """)
# Execution Rules Section # Execution Rules Section
with st.expander("4. Trade Execution Rules"): with st.expander("4. Trade Execution Rules"):
st.markdown(""" st.markdown("""
* Risk Management: * Pre-Entry:
- 1-2% account risk per trade - Run Monte Carlo simulation
- No overleverage - Calculate position size
* Order Types: - Determine stop loss and target
- Use limit orders for entries
- Set OCO orders for exits * Entry Rules:
- Enter only at planned levels
- Use limit orders when possible
- Confirm volume and direction
* Position Management: * Position Management:
- Follow stop-loss plan - Set hard stop loss immediately
- Take partial profits at 5-10% - Place target price alerts
- Trail stops on runners - Convert to trailing stop when target hits
* Risk Management:
- Follow Monte Carlo stop loss levels
- Use calculated position sizes only
- No overriding system calculations
""") """)
# Review Section # Review Section
with st.expander("5. Post-Trading Review"): with st.expander("5. Post-Trading Review"):
st.markdown(""" st.markdown("""
* Journal every trade * Journal every trade with:
* Review performance - Entry/exit points
* Check scanner results - Monte Carlo projections vs actual
* Refine strategies - SunnyBands signal accuracy
* Review screener effectiveness
* Analyze stop loss performance
* Check target price hit rates
* Evaluate trailing stop effectiveness
""") """)