Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions fix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
with open("src/dashboard.py", "r") as f:
lines = f.readlines()

for i, line in enumerate(lines):
if "help=\"Basis points per trade" in line:
pass # verify it's there
531 changes: 348 additions & 183 deletions src/dashboard.py

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/import_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ def analyze_stock(ticker_symbol, period="1y"):
Demonstrates using the new modular architecture.
"""
print(f"\n--- Analyzing {ticker_symbol} ---")

# 1. Use the data model
df = data_model.fetch_stock_data(ticker_symbol, period=period)

if df.empty:
print(f"No data found for {ticker_symbol}")
return None

# 2. Use the signals module
df = signals.add_technical_indicators(df)

latest = df.iloc[-1]

print(f"Current Price: ${latest['Close']:.2f}")
print(f"50-Day SMA: ${latest['SMA_50']:.2f}")
print(f"Momentum: {latest['Momentum_12M_1M']:.2%}")
print(f"RSI (14): {latest['RSI_14']:.2f}")

if latest['Close'] > latest['SMA_50']:
print("Trend: BULLISH 🐂")
else:
print("Trend: BEARISH 🐻")

return df

if __name__ == "__main__":
# Add your favorite stocks here!
portfolio = ["AAPL", "MSFT", "GOOGL", "TSLA"]

for ticker in portfolio:
analyze_stock(ticker)
Loading
Loading