Upload 5 files
Browse files- README.md +29 -0
- app.py +257 -0
- gitattributes +35 -0
- index.html +1034 -0
- requirements.txt +3 -0
README.md
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Trading Affirmations App
|
3 |
+
emoji: 📈
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
+
sdk: static
|
7 |
+
pinned: false
|
8 |
+
---
|
9 |
+
|
10 |
+
# Trading Affirmations App
|
11 |
+
|
12 |
+
A web application for traders that combines affirmations with real-time market data to help improve trading psychology and performance.
|
13 |
+
|
14 |
+
## Features
|
15 |
+
|
16 |
+
- Real-time market data from Alpha Vantage and Finnhub
|
17 |
+
- Trading session awareness (Asia, Europe, US)
|
18 |
+
- Trading affirmations based on your current trading status
|
19 |
+
- Intermarket analysis visualizations
|
20 |
+
- Trading opportunities powered by Gemini AI
|
21 |
+
- Trade tracking and journal
|
22 |
+
|
23 |
+
## Environment Variables
|
24 |
+
|
25 |
+
This app requires the following environment variables to be set in your Hugging Face Space:
|
26 |
+
|
27 |
+
- `ALPHA_VANTAGE_API_KEY` - Your Alpha Vantage API key
|
28 |
+
- `FINNHUB_API_KEY` - Your Finnhub API key
|
29 |
+
- `GEMINI_API_KEY` - Your Google Gemini API key (optional)
|
app.py
ADDED
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import requests
|
3 |
+
from flask import Flask, jsonify, request, send_from_directory
|
4 |
+
|
5 |
+
app = Flask(__name__, static_folder='static')
|
6 |
+
|
7 |
+
# Get API keys from environment variables
|
8 |
+
ALPHA_VANTAGE_API_KEY = os.environ.get('ALPHA_VANTAGE_API_KEY', '')
|
9 |
+
FINNHUB_API_KEY = os.environ.get('FINNHUB_API_KEY', '')
|
10 |
+
GEMINI_API_KEY = os.environ.get('GEMINI_API_KEY', '')
|
11 |
+
|
12 |
+
@app.route('/')
|
13 |
+
def index():
|
14 |
+
return send_from_directory('static', 'index.html')
|
15 |
+
|
16 |
+
@app.route('/api/ticker')
|
17 |
+
def get_ticker_data():
|
18 |
+
"""Get stock ticker data from Alpha Vantage"""
|
19 |
+
symbols = request.args.get('symbols', 'AAPL,NVDA,ASML,INTC').split(',')
|
20 |
+
results = []
|
21 |
+
|
22 |
+
for symbol in symbols:
|
23 |
+
try:
|
24 |
+
url = f"https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={symbol}&apikey={ALPHA_VANTAGE_API_KEY}"
|
25 |
+
response = requests.get(url)
|
26 |
+
data = response.json()
|
27 |
+
|
28 |
+
if "Global Quote" in data and data["Global Quote"]:
|
29 |
+
quote = data["Global Quote"]
|
30 |
+
price = float(quote.get("05. price", 0))
|
31 |
+
change_percent = quote.get("10. change percent", "0%").replace('%', '')
|
32 |
+
change_direction = "up" if float(change_percent) >= 0 else "down"
|
33 |
+
|
34 |
+
results.append({
|
35 |
+
"symbol": symbol,
|
36 |
+
"price": price,
|
37 |
+
"change_percent": abs(float(change_percent)),
|
38 |
+
"direction": change_direction
|
39 |
+
})
|
40 |
+
else:
|
41 |
+
# Fallback to default values if API fails
|
42 |
+
results.append({
|
43 |
+
"symbol": symbol,
|
44 |
+
"price": 100.00,
|
45 |
+
"change_percent": 1.0,
|
46 |
+
"direction": "up"
|
47 |
+
})
|
48 |
+
except Exception as e:
|
49 |
+
print(f"Error fetching data for {symbol}: {str(e)}")
|
50 |
+
# Return default values on error
|
51 |
+
results.append({
|
52 |
+
"symbol": symbol,
|
53 |
+
"price": 100.00,
|
54 |
+
"change_percent": 1.0,
|
55 |
+
"direction": "up"
|
56 |
+
})
|
57 |
+
|
58 |
+
return jsonify(results)
|
59 |
+
|
60 |
+
@app.route('/api/market_overview')
|
61 |
+
def get_market_overview():
|
62 |
+
"""Get market overview data from Finnhub"""
|
63 |
+
try:
|
64 |
+
url = f"https://finnhub.io/api/v1/quote?symbol=SPY&token={FINNHUB_API_KEY}"
|
65 |
+
response = requests.get(url)
|
66 |
+
data = response.json()
|
67 |
+
|
68 |
+
return jsonify({
|
69 |
+
"market_status": "open" if data.get("t", 0) > 0 else "closed",
|
70 |
+
"spy_price": data.get("c", 0),
|
71 |
+
"spy_change": data.get("dp", 0)
|
72 |
+
})
|
73 |
+
except Exception as e:
|
74 |
+
print(f"Error fetching market overview: {str(e)}")
|
75 |
+
return jsonify({
|
76 |
+
"market_status": "open",
|
77 |
+
"spy_price": 470.00,
|
78 |
+
"spy_change": 0.5
|
79 |
+
})
|
80 |
+
|
81 |
+
@app.route('/api/economic_calendar')
|
82 |
+
def get_economic_calendar():
|
83 |
+
"""Get economic calendar from Finnhub"""
|
84 |
+
try:
|
85 |
+
# Current date in YYYY-MM-DD format
|
86 |
+
from datetime import datetime, timedelta
|
87 |
+
today = datetime.now().strftime('%Y-%m-%d')
|
88 |
+
next_week = (datetime.now() + timedelta(days=7)).strftime('%Y-%m-%d')
|
89 |
+
|
90 |
+
url = f"https://finnhub.io/api/v1/calendar/economic?from={today}&to={next_week}&token={FINNHUB_API_KEY}"
|
91 |
+
response = requests.get(url)
|
92 |
+
data = response.json()
|
93 |
+
|
94 |
+
# Process and simplify the data
|
95 |
+
events = []
|
96 |
+
if "economicCalendar" in data:
|
97 |
+
for event in data["economicCalendar"][:15]: # Limit to 15 events
|
98 |
+
events.append({
|
99 |
+
"country": event.get("country", ""),
|
100 |
+
"event": event.get("event", ""),
|
101 |
+
"time": event.get("time", ""),
|
102 |
+
"impact": event.get("impact", "low"),
|
103 |
+
"forecast": event.get("forecast", ""),
|
104 |
+
"previous": event.get("previous", "")
|
105 |
+
})
|
106 |
+
|
107 |
+
return jsonify(events)
|
108 |
+
except Exception as e:
|
109 |
+
print(f"Error fetching economic calendar: {str(e)}")
|
110 |
+
return jsonify([])
|
111 |
+
|
112 |
+
@app.route('/api/market_data/<market>')
|
113 |
+
def get_market_data(market):
|
114 |
+
"""Get market data for specific regions"""
|
115 |
+
try:
|
116 |
+
symbols = {
|
117 |
+
"asia": ["^N225", "000001.SS", "^HSI", "^AXJO"],
|
118 |
+
"europe": ["^GDAXI", "^FTSE", "^FCHI", "^STOXX50E"],
|
119 |
+
"us": ["^GSPC", "^IXIC", "^DJI", "^VIX"]
|
120 |
+
}
|
121 |
+
|
122 |
+
if market not in symbols:
|
123 |
+
return jsonify([])
|
124 |
+
|
125 |
+
results = []
|
126 |
+
for symbol in symbols[market]:
|
127 |
+
url = f"https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={symbol}&apikey={ALPHA_VANTAGE_API_KEY}"
|
128 |
+
response = requests.get(url)
|
129 |
+
data = response.json()
|
130 |
+
|
131 |
+
if "Global Quote" in data and data["Global Quote"]:
|
132 |
+
quote = data["Global Quote"]
|
133 |
+
price = float(quote.get("05. price", 0))
|
134 |
+
change_percent = quote.get("10. change percent", "0%").replace('%', '')
|
135 |
+
change_direction = "up" if float(change_percent) >= 0 else "down"
|
136 |
+
|
137 |
+
# Map symbol to readable name
|
138 |
+
name_map = {
|
139 |
+
"^N225": "Nikkei 225",
|
140 |
+
"000001.SS": "Shanghai Composite",
|
141 |
+
"^HSI": "Hang Seng",
|
142 |
+
"^AXJO": "ASX 200",
|
143 |
+
"^GDAXI": "DAX",
|
144 |
+
"^FTSE": "FTSE 100",
|
145 |
+
"^FCHI": "CAC 40",
|
146 |
+
"^STOXX50E": "EURO STOXX 50",
|
147 |
+
"^GSPC": "S&P 500",
|
148 |
+
"^IXIC": "NASDAQ",
|
149 |
+
"^DJI": "Dow Jones",
|
150 |
+
"^VIX": "VIX"
|
151 |
+
}
|
152 |
+
|
153 |
+
results.append({
|
154 |
+
"name": name_map.get(symbol, symbol),
|
155 |
+
"price": price,
|
156 |
+
"change_percent": abs(float(change_percent)),
|
157 |
+
"direction": change_direction
|
158 |
+
})
|
159 |
+
else:
|
160 |
+
# Fallback to default values
|
161 |
+
results.append({
|
162 |
+
"name": symbol,
|
163 |
+
"price": 100.00,
|
164 |
+
"change_percent": 1.0,
|
165 |
+
"direction": "up"
|
166 |
+
})
|
167 |
+
|
168 |
+
return jsonify(results)
|
169 |
+
except Exception as e:
|
170 |
+
print(f"Error fetching data for {market}: {str(e)}")
|
171 |
+
return jsonify([])
|
172 |
+
|
173 |
+
@app.route('/api/gemini_key')
|
174 |
+
def get_gemini_key():
|
175 |
+
"""Return a masked version of the Gemini API key for verification"""
|
176 |
+
if GEMINI_API_KEY:
|
177 |
+
# Return only first 4 chars and mask the rest for verification
|
178 |
+
masked_key = GEMINI_API_KEY[:4] + '*' * (len(GEMINI_API_KEY) - 4)
|
179 |
+
return jsonify({"status": "available", "key": masked_key})
|
180 |
+
else:
|
181 |
+
return jsonify({"status": "unavailable", "key": ""})
|
182 |
+
|
183 |
+
@app.route('/api/intermarket')
|
184 |
+
def get_intermarket_data():
|
185 |
+
"""Get intermarket analysis data"""
|
186 |
+
try:
|
187 |
+
# Get data for stocks, bonds, commodities, and forex
|
188 |
+
indices = ["SPY", "TLT", "GLD", "UUP"]
|
189 |
+
results = {}
|
190 |
+
|
191 |
+
for idx in indices:
|
192 |
+
url = f"https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={idx}&apikey={ALPHA_VANTAGE_API_KEY}"
|
193 |
+
response = requests.get(url)
|
194 |
+
data = response.json()
|
195 |
+
|
196 |
+
if "Global Quote" in data and data["Global Quote"]:
|
197 |
+
quote = data["Global Quote"]
|
198 |
+
price = float(quote.get("05. price", 0))
|
199 |
+
change_percent = quote.get("10. change percent", "0%").replace('%', '')
|
200 |
+
|
201 |
+
results[idx] = {
|
202 |
+
"price": price,
|
203 |
+
"change_percent": float(change_percent.replace('%', ''))
|
204 |
+
}
|
205 |
+
|
206 |
+
# Calculate simplified correlations (simulated)
|
207 |
+
correlations = {
|
208 |
+
"stocks_bonds": 0.68,
|
209 |
+
"stocks_commodities": -0.42,
|
210 |
+
"stocks_dollar": 0.12,
|
211 |
+
"bonds_commodities": -0.71,
|
212 |
+
"bonds_dollar": -0.53,
|
213 |
+
"commodities_dollar": -0.65
|
214 |
+
}
|
215 |
+
|
216 |
+
return jsonify({
|
217 |
+
"assets": results,
|
218 |
+
"correlations": correlations
|
219 |
+
})
|
220 |
+
except Exception as e:
|
221 |
+
print(f"Error fetching intermarket data: {str(e)}")
|
222 |
+
return jsonify({"assets": {}, "correlations": {}})
|
223 |
+
|
224 |
+
@app.route('/api/affirmations/<category>/<status>')
|
225 |
+
def get_affirmation(category, status):
|
226 |
+
"""Get a specific affirmation based on category and status"""
|
227 |
+
affirmations = {
|
228 |
+
'discipline': {
|
229 |
+
'preparing': 'Ich bin ein disziplinierter und geduldiger Trader, der seinem Handelsplan mit unerschütterlichem Engagement folgt. Ich vertraue auf die Wirksamkeit meiner Strategien und warte geduldig auf Setups mit hoher Wahrscheinlichkeit.',
|
230 |
+
'active': 'Während mein Trade aktiv ist, bleibe ich diszipliniert und geduldig. Ich folge meinem Plan und erlaube keiner Emotion, meine Strategie zu untergraben.',
|
231 |
+
'developing': 'Beim Entwickeln meiner Strategie wende ich Disziplin und Geduld an. Ich nehme mir die Zeit, jedes Detail zu durchdenken und teste gründlich, bevor ich handele.',
|
232 |
+
'break': 'In dieser Pause pflege ich meine Disziplin und Geduld, indem ich reflektiere und lerne. Ich verstehe, dass Ruhezeiten wesentlich für nachhaltigen Trading-Erfolg sind.'
|
233 |
+
},
|
234 |
+
'abundance': {
|
235 |
+
'preparing': 'Ich ziehe reichlich Handelsmöglichkeiten an, die mit meiner Strategie übereinstimmen. Der Markt bietet einen endlosen Strom von Gelegenheiten, und ich bin bereit, sie zu nutzen.',
|
236 |
+
'active': 'Mein aktueller Trade ist eine von vielen Gelegenheiten für Wohlstand. Ich denke in Fülle und weiß, dass unabhängig vom Ausgang dieses Trades weitere profitable Chancen folgen werden.',
|
237 |
+
'developing': 'Ich entwickle meine Strategie mit einer Überfluss-Denkweise. Ich erkenne die unbegrenzten Möglichkeiten des Marktes an und erschaffe einen Ansatz, der diesen Reichtum anzieht.',
|
238 |
+
'break': 'Während dieser Pause ziehe ich neue Erkenntnisse und Möglichkeiten an. Ich nutze diese Zeit, um meine Überfluss-Denkweise zu stärken und mich auf neue Handelschancen vorzubereiten.'
|
239 |
+
}
|
240 |
+
# Additional categories could be added here
|
241 |
+
}
|
242 |
+
|
243 |
+
if category in affirmations and status in affirmations[category]:
|
244 |
+
return jsonify({
|
245 |
+
'text': affirmations[category][status],
|
246 |
+
'category': category,
|
247 |
+
'status': status
|
248 |
+
})
|
249 |
+
else:
|
250 |
+
return jsonify({
|
251 |
+
'text': 'Ich handle mit Klarheit, Disziplin und Vertrauen.',
|
252 |
+
'category': 'general',
|
253 |
+
'status': 'default'
|
254 |
+
})
|
255 |
+
|
256 |
+
if __name__ == '__main__':
|
257 |
+
app.run(host='0.0.0.0', port=7860, debug=True)
|
gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
index.html
ADDED
@@ -0,0 +1,1034 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="de">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Trading Affirmations App</title>
|
7 |
+
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
8 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/css/all.min.css">
|
9 |
+
<link rel="stylesheet" href="/static/css/styles.css">
|
10 |
+
</head>
|
11 |
+
<body>
|
12 |
+
<!-- Header and Navigation -->
|
13 |
+
<nav class="navbar p-4">
|
14 |
+
<div class="container mx-auto flex justify-between items-center">
|
15 |
+
<a href="#" class="text-xl font-bold">Trading Affirmations App</a>
|
16 |
+
<div class="api-key-container">
|
17 |
+
<div class="flex items-center">
|
18 |
+
<span class="api-status" id="apiStatus"></span>
|
19 |
+
<span class="text-sm mr-2">API Status</span>
|
20 |
+
</div>
|
21 |
+
<input type="password" id="geminiApiKey" class="api-key-input" placeholder="Gemini API Key" onchange="saveApiKey()">
|
22 |
+
<button onclick="connectApi()" class="btn-primary text-sm py-1">
|
23 |
+
<span id="connectText">Verbinden</span>
|
24 |
+
<div class="loading-spinner" id="apiSpinner"></div>
|
25 |
+
</button>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
</nav>
|
29 |
+
|
30 |
+
<!-- TradingView Ticker -->
|
31 |
+
<div class="ticker-container">
|
32 |
+
<div class="ticker-content">
|
33 |
+
<div class="ticker-item up">NASDAQ:AAPL <span>186.32</span> <i class="fas fa-caret-up"></i> 1.2%</div>
|
34 |
+
<div class="ticker-item down">NASDAQ:NVDA <span>432.65</span> <i class="fas fa-caret-down"></i> 0.8%</div>
|
35 |
+
<div class="ticker-item up">NASDAQ:ASML <span>689.43</span> <i class="fas fa-caret-up"></i> 2.1%</div>
|
36 |
+
<div class="ticker-item up">BINANCE:BNBUSDT <span>573.21</span> <i class="fas fa-caret-up"></i> 3.4%</div>
|
37 |
+
<div class="ticker-item down">NASDAQ:INTC <span>34.87</span> <i class="fas fa-caret-down"></i> 1.5%</div>
|
38 |
+
<div class="ticker-item up">CAPITALCOM:BTCUSD <span>43256.78</span> <i class="fas fa-caret-up"></i> 2.3%</div>
|
39 |
+
<div class="ticker-item up">PEPPERSTONE:XAUUSD <span>2316.42</span> <i class="fas fa-caret-up"></i> 0.7%</div>
|
40 |
+
<div class="ticker-item down">FX:USDJPY <span>143.85</span> <i class="fas fa-caret-down"></i> 0.3%</div>
|
41 |
+
<div class="ticker-item up">PEPPERSTONE:GER40 <span>18234.6</span> <i class="fas fa-caret-up"></i> 1.1%</div>
|
42 |
+
<div class="ticker-item down">CAPITALCOM:EURUSD <span>1.0845</span> <i class="fas fa-caret-down"></i> 0.2%</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
<!-- Main Content -->
|
47 |
+
<div class="container mx-auto p-4">
|
48 |
+
<!-- Tabs -->
|
49 |
+
<div class="tab-container mb-6">
|
50 |
+
<div class="tab active" data-tab="dashboard">Dashboard</div>
|
51 |
+
<div class="tab" data-tab="sessions">Trading Sessions</div>
|
52 |
+
<div class="tab" data-tab="intermarket">Intermarket Analyse</div>
|
53 |
+
<div class="tab" data-tab="affirmations">Affirmationen</div>
|
54 |
+
<div class="tab" data-tab="opportunities">Trading Opportunities</div>
|
55 |
+
<div class="tab" data-tab="mytrades">Meine Trades</div>
|
56 |
+
</div>
|
57 |
+
|
58 |
+
<!-- Dashboard Tab Content -->
|
59 |
+
<div class="tab-content active" id="dashboard">
|
60 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
61 |
+
<div class="section">
|
62 |
+
<h2 class="section-title">Aktuelle Session</h2>
|
63 |
+
<div class="session-card">
|
64 |
+
<div class="session-title">Europa Session</div>
|
65 |
+
<div class="session-time">08:00 - 16:30 CET</div>
|
66 |
+
<div class="session-status bg-green-500">Aktiv</div>
|
67 |
+
<div class="mt-4">
|
68 |
+
<p class="text-sm opacity-80">Hauptmärkte: DAX, FTSE, CAC40</p>
|
69 |
+
<p class="text-sm opacity-80">13 Events heute</p>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<div class="mt-4">
|
73 |
+
<p class="font-medium mb-2">Nächste Sessions:</p>
|
74 |
+
<div class="text-sm text-gray-600 mb-1">US Session - Beginnt in 3h 20min</div>
|
75 |
+
<div class="text-sm text-gray-600">Asien Session - Beginnt in 15h 30min</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<div class="section">
|
80 |
+
<h2 class="section-title">Trader Status</h2>
|
81 |
+
<div class="form-group">
|
82 |
+
<label class="block text-gray-700 mb-2">Dein aktueller Status:</label>
|
83 |
+
<select id="traderStatus" class="select-control" onchange="updateAffirmation()">
|
84 |
+
<option value="preparing">Vorbereitung auf Trade</option>
|
85 |
+
<option value="active">Aktiver Trade läuft</option>
|
86 |
+
<option value="developing">Entwickle Strategie</option>
|
87 |
+
<option value="break">Pause / Reflexion</option>
|
88 |
+
</select>
|
89 |
+
</div>
|
90 |
+
|
91 |
+
<div class="affirmation-card mt-4">
|
92 |
+
<div class="affirmation-text" id="currentAffirmation">
|
93 |
+
Ich bin ein disziplinierter und geduldiger Trader, der seinem Handelsplan mit unerschütterlichem Engagement folgt. Ich vertraue auf die Wirksamkeit meiner Strategien und warte geduldig auf Setups mit hoher Wahrscheinlichkeit.
|
94 |
+
</div>
|
95 |
+
<div class="affirmation-category" id="affirmationCategory">
|
96 |
+
Disziplin und Geduld entwickeln
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
|
101 |
+
<div class="section">
|
102 |
+
<h2 class="section-title">Aktive Trades</h2>
|
103 |
+
<div id="activeTrades">
|
104 |
+
<div class="trade-item">
|
105 |
+
<div class="trade-symbol">NASDAQ:AAPL</div>
|
106 |
+
<div class="trade-details">Long @ 180.45 • Stop: 175.60 • Target: 190.00</div>
|
107 |
+
<div class="trade-pnl profit">+3.25%</div>
|
108 |
+
<div class="text-sm text-gray-500 mt-2">Eröffnet: Heute, 10:15 CET</div>
|
109 |
+
<div class="trade-actions">
|
110 |
+
<button class="btn-primary text-xs py-1">Bearbeiten</button>
|
111 |
+
<button class="btn-danger text-xs py-1" onclick="removeTrade(this)">Entfernen</button>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
|
115 |
+
<div class="trade-item">
|
116 |
+
<div class="trade-symbol">FX:EURUSD</div>
|
117 |
+
<div class="trade-details">Short @ 1.0890 • Stop: 1.0925 • Target: 1.0820</div>
|
118 |
+
<div class="trade-pnl loss">-0.12%</div>
|
119 |
+
<div class="text-sm text-gray-500 mt-2">Eröffnet: Gestern, 16:45 CET</div>
|
120 |
+
<div class="trade-actions">
|
121 |
+
<button class="btn-primary text-xs py-1">Bearbeiten</button>
|
122 |
+
<button class="btn-danger text-xs py-1" onclick="removeTrade(this)">Entfernen</button>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
<div class="mt-4 text-center">
|
127 |
+
<button class="btn-primary" onclick="showAddTradeModal()">+ Neuen Trade hinzufügen</button>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
|
132 |
+
<div class="section mt-6">
|
133 |
+
<h2 class="section-title">Intermarket-Übersicht (Murphy's Analyse)</h2>
|
134 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
135 |
+
<div class="correlation-matrix">
|
136 |
+
<div class="matrix-title">Aktuelle Korrelationen</div>
|
137 |
+
<table class="matrix-table">
|
138 |
+
<thead>
|
139 |
+
<tr>
|
140 |
+
<th></th>
|
141 |
+
<th>Aktien</th>
|
142 |
+
<th>Anleihen</th>
|
143 |
+
<th>Rohstoffe</th>
|
144 |
+
<th>Dollar</th>
|
145 |
+
</tr>
|
146 |
+
</thead>
|
147 |
+
<tbody>
|
148 |
+
<tr>
|
149 |
+
<th>Aktien</th>
|
150 |
+
<td>—</td>
|
151 |
+
<td class="correlation-positive">+0.68</td>
|
152 |
+
<td class="correlation-negative">-0.42</td>
|
153 |
+
<td class="correlation-neutral">+0.12</td>
|
154 |
+
</tr>
|
155 |
+
<tr>
|
156 |
+
<th>Anleihen</th>
|
157 |
+
<td class="correlation-positive">+0.68</td>
|
158 |
+
<td>—</td>
|
159 |
+
<td class="correlation-negative">-0.71</td>
|
160 |
+
<td class="correlation-negative">-0.53</td>
|
161 |
+
</tr>
|
162 |
+
<tr>
|
163 |
+
<th>Rohstoffe</th>
|
164 |
+
<td class="correlation-negative">-0.42</td>
|
165 |
+
<td class="correlation-negative">-0.71</td>
|
166 |
+
<td>—</td>
|
167 |
+
<td class="correlation-negative">-0.65</td>
|
168 |
+
</tr>
|
169 |
+
<tr>
|
170 |
+
<th>Dollar</th>
|
171 |
+
<td class="correlation-neutral">+0.12</td>
|
172 |
+
<td class="correlation-negative">-0.53</td>
|
173 |
+
<td class="correlation-negative">-0.65</td>
|
174 |
+
<td>—</td>
|
175 |
+
</tr>
|
176 |
+
</tbody>
|
177 |
+
</table>
|
178 |
+
</div>
|
179 |
+
|
180 |
+
<div>
|
181 |
+
<div class="widget">
|
182 |
+
<div class="widget-title">Marktrotation nach Murphy</div>
|
183 |
+
<div class="text-sm mb-4">
|
184 |
+
Aktuelle Zyklusposition: <span class="font-semibold">Späte Expansion / Frühe Inflation</span>
|
185 |
+
</div>
|
186 |
+
<ul class="text-sm">
|
187 |
+
<li class="mb-2"><span class="text-green-600 font-semibold">Führende Sektoren:</span> Energie, Materialien, Industrie</li>
|
188 |
+
<li class="mb-2"><span class="text-yellow-600 font-semibold">Neutrale Sektoren:</span> Finanzen, Gesundheit, Versorger</li>
|
189 |
+
<li class="mb-2"><span class="text-red-600 font-semibold">Schwächere Sektoren:</span> Technologie, Konsumgüter, Immobilien</li>
|
190 |
+
</ul>
|
191 |
+
<div class="mt-4 text-sm text-gray-600">
|
192 |
+
<p class="mb-2"><i class="fas fa-info-circle mr-1"></i> Die steigende Korrelation zwischen Aktien und Anleihen deutet auf einen möglichen Übergang in die Inflationsphase hin.</p>
|
193 |
+
<p><i class="fas fa-exclamation-triangle mr-1 text-yellow-600"></i> Die negative Korrelation zwischen Rohstoffen und Dollar hat sich verstärkt.</p>
|
194 |
+
</div>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
|
201 |
+
<!-- Sessions Tab Content -->
|
202 |
+
<div class="tab-content" id="sessions">
|
203 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
204 |
+
<!-- Asia Session -->
|
205 |
+
<div class="section">
|
206 |
+
<h2 class="section-title">Asien Session</h2>
|
207 |
+
<div class="session-card" style="background: linear-gradient(145deg, #e74c3c, #c0392b);">
|
208 |
+
<div class="session-title">Asien Märkte</div>
|
209 |
+
<div class="session-time">00:00 - 09:00 CET</div>
|
210 |
+
<div class="session-status bg-gray-500">Geschlossen</div>
|
211 |
+
<div class="mt-4">
|
212 |
+
<p class="text-sm opacity-80">Nächste Session beginnt in 15h 30min</p>
|
213 |
+
</div>
|
214 |
+
</div>
|
215 |
+
|
216 |
+
<div class="widget mt-4">
|
217 |
+
<div class="widget-title">Session-Zeiten</div>
|
218 |
+
<table class="w-full text-sm">
|
219 |
+
<tr>
|
220 |
+
<td>Tokyo (JST):</td>
|
221 |
+
<td class="font-medium">09:00 - 18:00</td>
|
222 |
+
</tr>
|
223 |
+
<tr>
|
224 |
+
<td>Shanghai (CST):</td>
|
225 |
+
<td class="font-medium">09:30 - 15:00</td>
|
226 |
+
</tr>
|
227 |
+
<tr>
|
228 |
+
<td>Sydney (AEST):</td>
|
229 |
+
<td class="font-medium">10:00 - 16:00</td>
|
230 |
+
</tr>
|
231 |
+
<tr>
|
232 |
+
<td>Singapore (SGT):</td>
|
233 |
+
<td class="font-medium">09:00 - 17:00</td>
|
234 |
+
</tr>
|
235 |
+
</table>
|
236 |
+
</div>
|
237 |
+
|
238 |
+
<div class="widget mt-4">
|
239 |
+
<div class="widget-title">Wirtschaftskalender</div>
|
240 |
+
<div class="event-item">
|
241 |
+
<div class="flex justify-between">
|
242 |
+
<div>
|
243 |
+
<span class="event-impact high"></span>
|
244 |
+
<span class="event-name">BoJ Zinsentscheid</span>
|
245 |
+
</div>
|
246 |
+
<div class="event-time">00:30 CET</div>
|
247 |
+
</div>
|
248 |
+
<div class="text-sm text-gray-600 mt-1">
|
249 |
+
Prognose: Unverändert | Vorher: -0.10%
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
<div class="event-item">
|
253 |
+
<div class="flex justify-between">
|
254 |
+
<div>
|
255 |
+
<span class="event-impact medium"></span>
|
256 |
+
<span class="event-name">China PMI</span>
|
257 |
+
</div>
|
258 |
+
<div class="event-time">03:45 CET</div>
|
259 |
+
</div>
|
260 |
+
<div class="text-sm text-gray-600 mt-1">
|
261 |
+
Prognose: 50.5 | Vorher: 50.2
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
<div class="event-item">
|
265 |
+
<div class="flex justify-between">
|
266 |
+
<div>
|
267 |
+
<span class="event-impact low"></span>
|
268 |
+
<span class="event-name">Australien Einzelhandelsumsätze</span>
|
269 |
+
</div>
|
270 |
+
<div class="event-time">02:30 CET</div>
|
271 |
+
</div>
|
272 |
+
<div class="text-sm text-gray-600 mt-1">
|
273 |
+
Prognose: 0.3% | Vorher: 0.2%
|
274 |
+
</div>
|
275 |
+
</div>
|
276 |
+
</div>
|
277 |
+
|
278 |
+
<div class="widget mt-4">
|
279 |
+
<div class="widget-title">Marktbewegungen</div>
|
280 |
+
<div class="market-item">
|
281 |
+
<div class="market-name">Nikkei 225</div>
|
282 |
+
<div class="market-value up">+1.2%</div>
|
283 |
+
</div>
|
284 |
+
<div class="market-item">
|
285 |
+
<div class="market-name">Shanghai Composite</div>
|
286 |
+
<div class="market-value down">-0.5%</div>
|
287 |
+
</div>
|
288 |
+
<div class="market-item">
|
289 |
+
<div class="market-name">Hang Seng</div>
|
290 |
+
<div class="market-value up">+0.8%</div>
|
291 |
+
</div>
|
292 |
+
<div class="market-item">
|
293 |
+
<div class="market-name">ASX 200</div>
|
294 |
+
<div class="market-value up">+0.3%</div>
|
295 |
+
</div>
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
|
299 |
+
<!-- Europe Session -->
|
300 |
+
<div class="section">
|
301 |
+
<h2 class="section-title">Europa Session</h2>
|
302 |
+
<div class="session-card" style="background: linear-gradient(145deg, #3498db, #2980b9);">
|
303 |
+
<div class="session-title">Europa Märkte</div>
|
304 |
+
<div class="session-time">08:00 - 16:30 CET</div>
|
305 |
+
<div class="session-status bg-green-500">Aktiv</div>
|
306 |
+
<div class="mt-4">
|
307 |
+
<p class="text-sm opacity-80">Aktive Session läuft noch 3h 15min</p>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
|
311 |
+
<div class="widget mt-4">
|
312 |
+
<div class="widget-title">Session-Zeiten</div>
|
313 |
+
<table class="w-full text-sm">
|
314 |
+
<tr>
|
315 |
+
<td>London (GMT):</td>
|
316 |
+
<td class="font-medium">08:00 - 16:30</td>
|
317 |
+
</tr>
|
318 |
+
<tr>
|
319 |
+
<td>Frankfurt (CET):</td>
|
320 |
+
<td class="font-medium">09:00 - 17:30</td>
|
321 |
+
</tr>
|
322 |
+
<tr>
|
323 |
+
<td>Paris (CET):</td>
|
324 |
+
<td class="font-medium">09:00 - 17:30</td>
|
325 |
+
</tr>
|
326 |
+
<tr>
|
327 |
+
<td>Zürich (CET):</td>
|
328 |
+
<td class="font-medium">09:00 - 17:30</td>
|
329 |
+
</tr>
|
330 |
+
</table>
|
331 |
+
</div>
|
332 |
+
|
333 |
+
<div class="widget mt-4">
|
334 |
+
<div class="widget-title">Wirtschaftskalender</div>
|
335 |
+
<div class="event-item">
|
336 |
+
<div class="flex justify-between">
|
337 |
+
<div>
|
338 |
+
<span class="event-impact high"></span>
|
339 |
+
<span class="event-name">DE Verbraucherpreisindex</span>
|
340 |
+
</div>
|
341 |
+
<div class="event-time">14:00 CET</div>
|
342 |
+
</div>
|
343 |
+
<div class="text-sm text-gray-600 mt-1">
|
344 |
+
Prognose: 2.3% | Vorher: 2.2%
|
345 |
+
</div>
|
346 |
+
</div>
|
347 |
+
<div class="event-item">
|
348 |
+
<div class="flex justify-between">
|
349 |
+
<div>
|
350 |
+
<span class="event-impact medium"></span>
|
351 |
+
<span class="event-name">UK BIP</span>
|
352 |
+
</div>
|
353 |
+
<div class="event-time">10:30 CET</div>
|
354 |
+
</div>
|
355 |
+
<div class="text-sm text-gray-600 mt-1">
|
356 |
+
Prognose: 0.4% | Vorher: 0.3%
|
357 |
+
</div>
|
358 |
+
</div>
|
359 |
+
<div class="event-item">
|
360 |
+
<div class="flex justify-between">
|
361 |
+
<div>
|
362 |
+
<span class="event-impact high"></span>
|
363 |
+
<span class="event-name">EZB Zinsentscheid</span>
|
364 |
+
</div>
|
365 |
+
<div class="event-time">13:45 CET</div>
|
366 |
+
</div>
|
367 |
+
<div class="text-sm text-gray-600 mt-1">
|
368 |
+
Prognose: Unverändert | Vorher: 4.50%
|
369 |
+
</div>
|
370 |
+
</div>
|
371 |
+
</div>
|
372 |
+
|
373 |
+
<div class="widget mt-4">
|
374 |
+
<div class="widget-title">Marktbewegungen</div>
|
375 |
+
<div class="market-item">
|
376 |
+
<div class="market-name">DAX</div>
|
377 |
+
<div class="market-value up">+0.9%</div>
|
378 |
+
</div>
|
379 |
+
<div class="market-item">
|
380 |
+
<div class="market-name">FTSE 100</div>
|
381 |
+
<div class="market-value up">+0.3%</div>
|
382 |
+
</div>
|
383 |
+
<div class="market-item">
|
384 |
+
<div class="market-name">CAC 40</div>
|
385 |
+
<div class="market-value down">-0.1%</div>
|
386 |
+
</div>
|
387 |
+
<div class="market-item">
|
388 |
+
<div class="market-name">EURO STOXX 50</div>
|
389 |
+
<div class="market-value up">+0.6%</div>
|
390 |
+
</div>
|
391 |
+
</div>
|
392 |
+
</div>
|
393 |
+
|
394 |
+
<!-- US Session -->
|
395 |
+
<div class="section">
|
396 |
+
<h2 class="section-title">USA Session</h2>
|
397 |
+
<div class="session-card" style="background: linear-gradient(145deg, #2ecc71, #27ae60);">
|
398 |
+
<div class="session-title">US Märkte</div>
|
399 |
+
<div class="session-time">14:30 - 21:00 CET</div>
|
400 |
+
<div class="session-status bg-yellow-500">Beginnt bald</div>
|
401 |
+
<div class="mt-4">
|
402 |
+
<p class="text-sm opacity-80">Session beginnt in 3h 20min</p>
|
403 |
+
</div>
|
404 |
+
</div>
|
405 |
+
|
406 |
+
<div class="widget mt-4">
|
407 |
+
<div class="widget-title">Session-Zeiten</div>
|
408 |
+
<table class="w-full text-sm">
|
409 |
+
<tr>
|
410 |
+
<td>New York (EDT):</td>
|
411 |
+
<td class="font-medium">09:30 - 16:00</td>
|
412 |
+
</tr>
|
413 |
+
<tr>
|
414 |
+
<td>Chicago (CDT):</td>
|
415 |
+
<td class="font-medium">08:30 - 15:00</td>
|
416 |
+
</tr>
|
417 |
+
<tr>
|
418 |
+
<td>Futures (Globex):</td>
|
419 |
+
<td class="font-medium">18:00 - 17:00</td>
|
420 |
+
</tr>
|
421 |
+
<tr>
|
422 |
+
<td>After-Hours:</td>
|
423 |
+
<td class="font-medium">16:00 - 20:00</td>
|
424 |
+
</tr>
|
425 |
+
</table>
|
426 |
+
</div>
|
427 |
+
|
428 |
+
<div class="widget mt-4">
|
429 |
+
<div class="widget-title">Wirtschaftskalender</div>
|
430 |
+
<div class="event-item">
|
431 |
+
<div class="flex justify-between">
|
432 |
+
<div>
|
433 |
+
<span class="event-impact high"></span>
|
434 |
+
<span class="event-name">US Non-Farm Payrolls</span>
|
435 |
+
</div>
|
436 |
+
<div class="event-time">14:30 CET</div>
|
437 |
+
</div>
|
438 |
+
<div class="text-sm text-gray-600 mt-1">
|
439 |
+
Prognose: 180K | Vorher: 175K
|
440 |
+
</div>
|
441 |
+
</div>
|
442 |
+
<div class="event-item">
|
443 |
+
<div class="flex justify-between">
|
444 |
+
<div>
|
445 |
+
<span class="event-impact high"></span>
|
446 |
+
<span class="event-name">US Arbeitslosenquote</span>
|
447 |
+
</div>
|
448 |
+
<div class="event-time">14:30 CET</div>
|
449 |
+
</div>
|
450 |
+
<div class="text-sm text-gray-600 mt-1">
|
451 |
+
Prognose: 3.8% | Vorher: 3.9%
|
452 |
+
</div>
|
453 |
+
</div>
|
454 |
+
<div class="event-item">
|
455 |
+
<div class="flex justify-between">
|
456 |
+
<div>
|
457 |
+
<span class="event-impact medium"></span>
|
458 |
+
<span class="event-name">US ISM Dienstleistungen</span>
|
459 |
+
</div>
|
460 |
+
<div class="event-time">16:00 CET</div>
|
461 |
+
</div>
|
462 |
+
<div class="text-sm text-gray-600 mt-1">
|
463 |
+
Prognose: 52.0 | Vorher: 51.4
|
464 |
+
</div>
|
465 |
+
</div>
|
466 |
+
</div>
|
467 |
+
|
468 |
+
<div class="widget mt-4">
|
469 |
+
<div class="widget-title">Marktbewegungen</div>
|
470 |
+
<div class="market-item">
|
471 |
+
<div class="market-name">S&P 500 (Futures)</div>
|
472 |
+
<div class="market-value up">+0.5%</div>
|
473 |
+
</div>
|
474 |
+
<div class="market-item">
|
475 |
+
<div class="market-name">NASDAQ (Futures)</div>
|
476 |
+
<div class="market-value up">+0.7%</div>
|
477 |
+
</div>
|
478 |
+
<div class="market-item">
|
479 |
+
<div class="market-name">Dow Jones (Futures)</div>
|
480 |
+
<div class="market-value up">+0.3%</div>
|
481 |
+
</div>
|
482 |
+
<div class="market-item">
|
483 |
+
<div class="market-name">VIX</div>
|
484 |
+
<div class="market-value down">-4.2%</div>
|
485 |
+
</div>
|
486 |
+
</div>
|
487 |
+
</div>
|
488 |
+
</div>
|
489 |
+
</div>
|
490 |
+
|
491 |
+
<!-- Intermarket Analysis Tab -->
|
492 |
+
<div class="tab-content" id="intermarket">
|
493 |
+
<div class="section">
|
494 |
+
<h2 class="section-title">Murphy's Intermarket-Analyse</h2>
|
495 |
+
<div class="mb-6">
|
496 |
+
<p class="text-gray-700 mb-4">Die Intermarket-Analyse nach Joseph Murphy basiert auf den Beziehungen zwischen den vier Hauptmärkten: Aktien, Anleihen, Rohstoffe und Währungen. Diese Beziehungen helfen Tradern, größere Markttrends zu verstehen und zu antizipieren.</p>
|
497 |
+
|
498 |
+
<div class="bg-blue-50 p-4 rounded-lg border border-blue-200">
|
499 |
+
<h3 class="font-semibold text-blue-800 mb-2">Aktueller Wirtschaftszyklus:</h3>
|
500 |
+
<div class="flex items-center">
|
501 |
+
<div class="w-full bg-gray-200 rounded-full h-4">
|
502 |
+
<div class="bg-blue-600 h-4 rounded-full" style="width: 65%"></div>
|
503 |
+
</div>
|
504 |
+
<span class="ml-2 text-sm font-medium">65%</span>
|
505 |
+
</div>
|
506 |
+
<div class="flex justify-between text-xs text-gray-600 mt-1">
|
507 |
+
<span>Erholung</span>
|
508 |
+
<span>Expansion</span>
|
509 |
+
<span>Inflation</span>
|
510 |
+
<span>Abschwächung</span>
|
511 |
+
</div>
|
512 |
+
<p class="text-sm text-blue-700 mt-3"><i class="fas fa-info-circle mr-1"></i> Wir befinden uns in der späten Expansion mit Anzeichen eines Übergangs zur Inflationsphase.</p>
|
513 |
+
</div>
|
514 |
+
</div>
|
515 |
+
|
516 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
517 |
+
<div class="correlation-matrix">
|
518 |
+
<div class="matrix-title">Intermarket-Beziehungen</div>
|
519 |
+
<table class="matrix-table">
|
520 |
+
<thead>
|
521 |
+
<tr>
|
522 |
+
<th></th>
|
523 |
+
<th>Aktien</th>
|
524 |
+
<th>Anleihen</th>
|
525 |
+
<th>Rohstoffe</th>
|
526 |
+
<th>Dollar</th>
|
527 |
+
</tr>
|
528 |
+
</thead>
|
529 |
+
<tbody>
|
530 |
+
<tr>
|
531 |
+
<th>Aktien</th>
|
532 |
+
<td>—</td>
|
533 |
+
<td class="correlation-positive">+0.68</td>
|
534 |
+
<td class="correlation-negative">-0.42</td>
|
535 |
+
<td class="correlation-neutral">+0.12</td>
|
536 |
+
</tr>
|
537 |
+
<tr>
|
538 |
+
<th>Anleihen</th>
|
539 |
+
<td class="correlation-positive">+0.68</td>
|
540 |
+
<td>—</td>
|
541 |
+
<td class="correlation-negative">-0.71</td>
|
542 |
+
<td class="correlation-negative">-0.53</td>
|
543 |
+
</tr>
|
544 |
+
<tr>
|
545 |
+
<th>Rohstoffe</th>
|
546 |
+
<td class="correlation-negative">-0.42</td>
|
547 |
+
<td class="correlation-negative">-0.71</td>
|
548 |
+
<td>—</td>
|
549 |
+
<td class="correlation-negative">-0.65</td>
|
550 |
+
</tr>
|
551 |
+
<tr>
|
552 |
+
<th>Dollar</th>
|
553 |
+
<td class="correlation-neutral">+0.12</td>
|
554 |
+
<td class="correlation-negative">-0.53</td>
|
555 |
+
<td class="correlation-negative">-0.65</td>
|
556 |
+
<td>—</td>
|
557 |
+
</tr>
|
558 |
+
</tbody>
|
559 |
+
</table>
|
560 |
+
<div class="text-sm text-gray-600 mt-3">
|
561 |
+
<p class="mb-1"><span class="text-green-600 font-medium">Positive Korrelation</span>: Märkte bewegen sich tendenziell in dieselbe Richtung</p>
|
562 |
+
<p class="mb-1"><span class="text-red-600 font-medium">Negative Korrelation</span>: Märkte bewegen sich tendenziell in entgegengesetzte Richtungen</p>
|
563 |
+
<p><span class="text-yellow-600 font-medium">Neutrale Korrelation</span>: Keine starke Beziehung zwischen den Märkten</p>
|
564 |
+
</div>
|
565 |
+
</div>
|
566 |
+
|
567 |
+
<div>
|
568 |
+
<div class="widget">
|
569 |
+
<div class="widget-title">Aktuelle Marktdynamik</div>
|
570 |
+
<ul class="text-sm space-y-3">
|
571 |
+
<li>
|
572 |
+
<span class="font-medium">Anleihen ↔ Aktien:</span>
|
573 |
+
<div class="text-gray-700">Anleiherenditen fallen, Aktienmarkt steigt. Diese positive Korrelation ist typisch für die Expansionsphase.</div>
|
574 |
+
</li>
|
575 |
+
<li>
|
576 |
+
<span class="font-medium">Anleihen ↔ Rohstoffe:</span>
|
577 |
+
<div class="text-gray-700">Anleihepreise fallen, Rohstoffpreise steigen. Diese negative Korrelation deutet auf steigende Inflationserwartungen hin.</div>
|
578 |
+
</li>
|
579 |
+
<li>
|
580 |
+
<span class="font-medium">Rohstoffe ↔ Dollar:</span>
|
581 |
+
<div class="text-gray-700">Der US-Dollar schwächt sich ab, während Rohstoffpreise steigen. Diese inverse Beziehung ist besonders für Goldtrader relevant.</div>
|
582 |
+
</li>
|
583 |
+
<li>
|
584 |
+
<span class="font-medium">Dollar ↔ Aktien:</span>
|
585 |
+
<div class="text-gray-700">Aktuell eine schwache Korrelation, was typisch für die Übergangsphase zwischen Expansion und Inflation ist.</div>
|
586 |
+
</li>
|
587 |
+
</ul>
|
588 |
+
</div>
|
589 |
+
|
590 |
+
<div class="widget mt-4">
|
591 |
+
<div class="widget-title">Wichtige Divergenzen</div>
|
592 |
+
<div class="p-3 bg-yellow-50 rounded-lg border border-yellow-200 mb-3">
|
593 |
+
<div class="font-medium text-yellow-800">Rohstoffe vs. Anleiherenditen</div>
|
594 |
+
<div class="text-sm text-gray-700 mt-1">Rohstoffpreise steigen stärker als Anleiherenditen, was auf verstärkte Inflationsrisiken hindeuten könnte.</div>
|
595 |
+
</div>
|
596 |
+
<div class="p-3 bg-red-50 rounded-lg border border-red-200">
|
597 |
+
<div class="font-medium text-red-800">Aktien vs. Wirtschaftsdaten</div>
|
598 |
+
<div class="text-sm text-gray-700 mt-1">Aktienindizes steigen trotz gemischter Wirtschaftsdaten, was auf eine mögliche Überbewertung hindeuten könnte.</div>
|
599 |
+
</div>
|
600 |
+
</div>
|
601 |
+
</div>
|
602 |
+
</div>
|
603 |
+
|
604 |
+
<div class="mt-6">
|
605 |
+
<h3 class="font-semibold text-lg mb-3">Symbole für Intermarket-Analyse</h3>
|
606 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
|
607 |
+
<div class="form-group">
|
608 |
+
<label class="block text-gray-700 mb-2 text-sm">Aktienindex auswählen:</label>
|
609 |
+
<select id="stockIndex" class="select-control">
|
610 |
+
<option value="PEPPERSTONE:US500">S&P 500</option>
|
611 |
+
<option value="PEPPERSTONE:NAS100">NASDAQ 100</option>
|
612 |
+
<option value="PEPPERSTONE:US30">Dow Jones</option>
|
613 |
+
<option value="PEPPERSTONE:GER40">DAX</option>
|
614 |
+
</select>
|
615 |
+
</div>
|
616 |
+
|
617 |
+
<div class="form-group">
|
618 |
+
<label class="block text-gray-700 mb-2 text-sm">Anleihe auswählen:</label>
|
619 |
+
<select id="bondIndex" class="select-control">
|
620 |
+
<option value="TVC:TNX">US 10Y Rendite</option>
|
621 |
+
<option value="CBOT:ZB1!">US T-Bond Futures</option>
|
622 |
+
<option value="TVC:DE10Y">DE 10Y Rendite</option>
|
623 |
+
</select>
|
624 |
+
</div>
|
625 |
+
|
626 |
+
<div class="form-group">
|
627 |
+
<label class="block text-gray-700 mb-2 text-sm">Rohstoff auswählen:</label>
|
628 |
+
<select id="commodityIndex" class="select-control">
|
629 |
+
<option value="PEPPERSTONE:XAUUSD">Gold</option>
|
630 |
+
<option value="PEPPERSTONE:SPOTCRUDE">Rohöl</option>
|
631 |
+
<option value="COMEX:SI1!">Silber</option>
|
632 |
+
<option value="NYMEX:NG1!">Erdgas</option>
|
633 |
+
</select>
|
634 |
+
</div>
|
635 |
+
|
636 |
+
<div class="form-group">
|
637 |
+
<label class="block text-gray-700 mb-2 text-sm">Währung auswählen:</label>
|
638 |
+
<select id="currencyIndex" class="select-control">
|
639 |
+
<option value="PEPPERSTONE:USDX">US Dollar Index</option>
|
640 |
+
<option value="PEPPERSTONE:EURUSD">EUR/USD</option>
|
641 |
+
<option value="FX:USDJPY">USD/JPY</option>
|
642 |
+
</select>
|
643 |
+
</div>
|
644 |
+
</div>
|
645 |
+
|
646 |
+
<div class="mt-4 text-center">
|
647 |
+
<button class="btn-primary" onclick="updateIntermarketAnalysis()">Intermarket-Analyse aktualisieren</button>
|
648 |
+
</div>
|
649 |
+
</div>
|
650 |
+
</div>
|
651 |
+
</div>
|
652 |
+
|
653 |
+
<!-- Affirmations Tab -->
|
654 |
+
<div class="tab-content" id="affirmations">
|
655 |
+
<div class="section">
|
656 |
+
<h2 class="section-title">Trading-Affirmationen</h2>
|
657 |
+
|
658 |
+
<div class="mb-6">
|
659 |
+
<div class="form-group">
|
660 |
+
<label class="block text-gray-700 mb-2">Dein aktueller Trader-Status:</label>
|
661 |
+
<select id="affirmationTraderStatus" class="select-control" onchange="updateAffirmationTab()">
|
662 |
+
<option value="preparing">Vorbereitung auf Trade</option>
|
663 |
+
<option value="active">Aktiver Trade läuft</option>
|
664 |
+
<option value="developing">Entwickle Strategie</option>
|
665 |
+
<option value="break">Pause / Reflexion</option>
|
666 |
+
</select>
|
667 |
+
</div>
|
668 |
+
|
669 |
+
<div class="form-group mt-4">
|
670 |
+
<label class="block text-gray-700 mb-2">Affirmations-Kategorie:</label>
|
671 |
+
<select id="affirmationCategory" class="select-control" onchange="updateAffirmationTab()">
|
672 |
+
<option value="discipline">Disziplin und Geduld entwickeln</option>
|
673 |
+
<option value="abundance">Überflussdenken fördern</option>
|
674 |
+
<option value="selection">Handelsauswahl verbessern</option>
|
675 |
+
<option value="burnout">Burnout und Erschöpfung überwinden</option>
|
676 |
+
<option value="bias">Bestätigungsfehler überwinden</option>
|
677 |
+
<option value="paralysis">Entscheidungslähmung überwinden</option>
|
678 |
+
<option value="fomo">FOMO überwinden</option>
|
679 |
+
<option value="losses">Verluste schnell akzeptieren</option>
|
680 |
+
<option value="emotional">Emotionale Bindung an Trades lösen</option>
|
681 |
+
<option value="overtrading">Überhandel widerstehen</option>
|
682 |
+
<option value="patience">Geduld bei langsamen Märkten bewahren</option>
|
683 |
+
</select>
|
684 |
+
</div>
|
685 |
+
</div>
|
686 |
+
|
687 |
+
<div class="affirmation-card" id="detailedAffirmation">
|
688 |
+
<div class="affirmation-text">
|
689 |
+
Ich bin ein disziplinierter und geduldiger Trader, der seinem Handelsplan mit unerschütterlichem Engagement folgt. Ich vertraue auf die Wirksamkeit meiner Strategien und warte geduldig auf Setups mit hoher Wahrscheinlichkeit. Ich habe die Selbstkontrolle, mich an meine etablierten Regeln zu halten und impulsive Handlungen zu vermeiden.
|
690 |
+
</div>
|
691 |
+
<div class="affirmation-category">
|
692 |
+
Disziplin und Geduld entwickeln
|
693 |
+
</div>
|
694 |
+
</div>
|
695 |
+
|
696 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mt-6">
|
697 |
+
<div class="widget">
|
698 |
+
<div class="widget-title">Affirmations-Timer</div>
|
699 |
+
<div class="text-center py-4">
|
700 |
+
<div class="text-4xl font-bold" id="affirmationTimer">05:00</div>
|
701 |
+
<div class="flex justify-center gap-3 mt-4">
|
702 |
+
<button class="btn-primary" id="startTimerBtn" onclick="startAffirmationTimer()">Start</button>
|
703 |
+
<button class="btn-primary" id="pauseTimerBtn" onclick="pauseAffirmationTimer()" disabled>Pause</button>
|
704 |
+
<button class="btn-primary" id="resetTimerBtn" onclick="resetAffirmationTimer()">Reset</button>
|
705 |
+
</div>
|
706 |
+
<div class="mt-4 text-sm text-gray-600">
|
707 |
+
Für optimale Ergebnisse, wiederhole die Affirmation während des Timers laut oder in Gedanken.
|
708 |
+
</div>
|
709 |
+
</div>
|
710 |
+
</div>
|
711 |
+
|
712 |
+
<div class="widget">
|
713 |
+
<div class="widget-title">Meine gespeicherten Affirmationen</div>
|
714 |
+
<div id="savedAffirmations">
|
715 |
+
<div class="event-item">
|
716 |
+
<div class="font-medium">Disziplin beim Warten auf Setups</div>
|
717 |
+
<div class="text-sm text-gray-600">Kategorie: Disziplin und Geduld</div>
|
718 |
+
</div>
|
719 |
+
<div class="event-item">
|
720 |
+
<div class="font-medium">Überwindung von FOMO bei volatilen Märkten</div>
|
721 |
+
<div class="text-sm text-gray-600">Kategorie: FOMO überwinden</div>
|
722 |
+
</div>
|
723 |
+
<div class="event-item">
|
724 |
+
<div class="font-medium">Emotionsloses Trading nach Verlusten</div>
|
725 |
+
<div class="text-sm text-gray-600">Kategorie: Verluste akzeptieren</div>
|
726 |
+
</div>
|
727 |
+
</div>
|
728 |
+
<div class="mt-4 text-center">
|
729 |
+
<button class="btn-primary" onclick="saveCurrentAffirmation()">Aktuelle Affirmation speichern</button>
|
730 |
+
</div>
|
731 |
+
</div>
|
732 |
+
</div>
|
733 |
+
|
734 |
+
<div class="mt-6">
|
735 |
+
<h3 class="font-semibold text-lg mb-3">Affirmations-Journal</h3>
|
736 |
+
<div class="form-group">
|
737 |
+
<label class="block text-gray-700 mb-2">Deine Gedanken zur heutigen Affirmation:</label>
|
738 |
+
<textarea class="form-control h-32" placeholder="Notiere, wie die Affirmation dein Trading heute beeinflusst hat..."></textarea>
|
739 |
+
</div>
|
740 |
+
<div class="mt-3 text-center">
|
741 |
+
<button class="btn-primary">Im Journal speichern</button>
|
742 |
+
</div>
|
743 |
+
</div>
|
744 |
+
</div>
|
745 |
+
</div>
|
746 |
+
|
747 |
+
<!-- Trading Opportunities Tab -->
|
748 |
+
<div class="tab-content" id="opportunities">
|
749 |
+
<div class="section">
|
750 |
+
<h2 class="section-title">Trading Opportunities mit Gemini AI</h2>
|
751 |
+
|
752 |
+
<div class="mb-6 p-4 bg-gradient-to-r from-blue-50 to-purple-50 rounded-lg border border-blue-100">
|
753 |
+
<div class="flex items-center mb-3">
|
754 |
+
<h3 class="font-semibold text-blue-800">Gemini AI Trading Analysis</h3>
|
755 |
+
<span class="gemini-badge ml-2">Powered by Google</span>
|
756 |
+
</div>
|
757 |
+
<p class="text-gray-700 text-sm mb-4">Gemini analysiert aktuelle Marktdaten, Nachrichten und technische Indikatoren, um Trading-Opportunitäten zu identifizieren. Die Analyse kombiniert KI-Erkenntnisse mit Intermarket-Beziehungen.</p>
|
758 |
+
</div>
|
759 |
+
|
760 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
761 |
+
<div>
|
762 |
+
<div class="form-group">
|
763 |
+
<label class="block text-gray-700 mb-2">Symbol auswählen:</label>
|
764 |
+
<select id="opportunitySymbol" class="select-control">
|
765 |
+
<option value="">-- Symbol wählen --</option>
|
766 |
+
<option value="NASDAQ:AAPL">NASDAQ:AAPL - Apple</option>
|
767 |
+
<option value="NASDAQ:NVDA">NASDAQ:NVDA - NVIDIA</option>
|
768 |
+
<option value="NASDAQ:ASML">NASDAQ:ASML - ASML Holding</option>
|
769 |
+
<option value="BINANCE:BNBUSDT">BINANCE:BNBUSDT - Binance Coin</option>
|
770 |
+
<option value="NASDAQ:INTC">NASDAQ:INTC - Intel</option>
|
771 |
+
<option value="CAPITALCOM:BTCUSD">CAPITALCOM:BTCUSD - Bitcoin</option>
|
772 |
+
<option value="AMEX:GLD">AMEX:GLD - Gold ETF</option>
|
773 |
+
<option value="PEPPERSTONE:EURUSD">PEPPERSTONE:EURUSD - EUR/USD</option>
|
774 |
+
<option value="PEPPERSTONE:US500">PEPPERSTONE:US500 - S&P 500</option>
|
775 |
+
<option value="FX:USDJPY">FX:USDJPY - USD/JPY</option>
|
776 |
+
</select>
|
777 |
+
</div>
|
778 |
+
|
779 |
+
<div class="form-group">
|
780 |
+
<label class="block text-gray-700 mb-2">Zeitrahmen:</label>
|
781 |
+
<select id="opportunityTimeframe" class="select-control">
|
782 |
+
<option value="shortTerm">Kurzfristig (Intraday - 1-3 Tage)</option>
|
783 |
+
<option value="mediumTerm">Mittelfristig (Swing - 1-2 Wochen)</option>
|
784 |
+
<option value="longTerm">Langfristig (Position - 1+ Monate)</option>
|
785 |
+
</select>
|
786 |
+
</div>
|
787 |
+
|
788 |
+
<div class="form-group">
|
789 |
+
<label class="block text-gray-700 mb-2">Analysestil:</label>
|
790 |
+
<select id="opportunityStyle" class="select-control">
|
791 |
+
<option value="technical">Technische Analyse</option>
|
792 |
+
<option value="fundamental">Fundamentale Analyse</option>
|
793 |
+
<option value="sentiment">Sentiment-Analyse</option>
|
794 |
+
<option value="combined">Kombiniert (empfohlen)</option>
|
795 |
+
</select>
|
796 |
+
</div>
|
797 |
+
|
798 |
+
<div class="form-group">
|
799 |
+
<label class="block text-gray-700 mb-2">Zusätzliche Anweisungen (optional):</label>
|
800 |
+
<textarea id="opportunityInstructions" class="form-control h-24" placeholder="Z.B.: Fokus auf Unterstützungs-/Widerstandsniveaus, bestimmte Nachrichten berücksichtigen, etc."></textarea>
|
801 |
+
</div>
|
802 |
+
|
803 |
+
<div class="mt-4">
|
804 |
+
<button class="btn-primary w-full py-3" onclick="generateOpportunity()">
|
805 |
+
<span id="analyzeText">Trading Opportunity analysieren</span>
|
806 |
+
<div class="loading-spinner" id="opportunitySpinner"></div>
|
807 |
+
</button>
|
808 |
+
</div>
|
809 |
+
</div>
|
810 |
+
|
811 |
+
<div class="bg-white p-4 rounded-lg border border-gray-200" id="opportunityResults">
|
812 |
+
<div class="text-center py-10 text-gray-500">
|
813 |
+
<i class="fas fa-chart-line text-4xl mb-3 text-gray-300"></i>
|
814 |
+
<p>Wähle ein Symbol und klicke auf "Analysieren", um eine KI-gestützte Trading-Opportunity zu erhalten.</p>
|
815 |
+
</div>
|
816 |
+
</div>
|
817 |
+
</div>
|
818 |
+
|
819 |
+
<div class="mt-6 p-4 bg-gray-50 rounded-lg">
|
820 |
+
<h3 class="font-semibold mb-3">Gespeicherte Opportunitäten</h3>
|
821 |
+
<div id="savedOpportunities">
|
822 |
+
<div class="p-3 bg-white rounded-lg shadow-sm mb-3">
|
823 |
+
<div class="flex justify-between items-start">
|
824 |
+
<div>
|
825 |
+
<div class="font-medium">NASDAQ:AAPL - Unterstützungstest</div>
|
826 |
+
<div class="text-sm text-gray-600">Kurzfristig · Technische Analyse</div>
|
827 |
+
</div>
|
828 |
+
<div class="badge badge-success">Long</div>
|
829 |
+
</div>
|
830 |
+
<div class="text-sm mt-2">
|
831 |
+
Apple testet wichtige Unterstützung bei $180. Technische Indikatoren deuten auf überkaufte Bedingungen hin, mit potenziellem Aufschwung.
|
832 |
+
</div>
|
833 |
+
</div>
|
834 |
+
|
835 |
+
<div class="p-3 bg-white rounded-lg shadow-sm">
|
836 |
+
<div class="flex justify-between items-start">
|
837 |
+
<div>
|
838 |
+
<div class="font-medium">PEPPERSTONE:EURUSD - EZB vs Fed Divergenz</div>
|
839 |
+
<div class="text-sm text-gray-600">Mittelfristig · Fundamental</div>
|
840 |
+
</div>
|
841 |
+
<div class="badge badge-danger">Short</div>
|
842 |
+
</div>
|
843 |
+
<div class="text-sm mt-2">
|
844 |
+
EUR/USD könnte unter Druck geraten aufgrund zunehmender Diskrepanz zwischen EZB und Fed Politik. Nächstes Unterstützungsniveau bei 1.0780.
|
845 |
+
</div>
|
846 |
+
</div>
|
847 |
+
</div>
|
848 |
+
</div>
|
849 |
+
</div>
|
850 |
+
</div>
|
851 |
+
|
852 |
+
<!-- My Trades Tab -->
|
853 |
+
<div class="tab-content" id="mytrades">
|
854 |
+
<div class="section">
|
855 |
+
<h2 class="section-title">Meine Trades</h2>
|
856 |
+
|
857 |
+
<div class="mb-6">
|
858 |
+
<div class="bg-white p-4 rounded-lg border border-gray-200">
|
859 |
+
<h3 class="font-semibold mb-3">Neuen Trade hinzufügen</h3>
|
860 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
861 |
+
<div class="form-group">
|
862 |
+
<label class="block text-gray-700 mb-2 text-sm">Symbol:</label>
|
863 |
+
<select id="newTradeSymbol" class="select-control">
|
864 |
+
<option value="">-- Symbol wählen --</option>
|
865 |
+
<option value="NASDAQ:AAPL">NASDAQ:AAPL - Apple</option>
|
866 |
+
<option value="NASDAQ:NVDA">NASDAQ:NVDA - NVIDIA</option>
|
867 |
+
<option value="NASDAQ:ASML">NASDAQ:ASML - ASML Holding</option>
|
868 |
+
<option value="BINANCE:BNBUSDT">BINANCE:BNBUSDT - Binance Coin</option>
|
869 |
+
<option value="NASDAQ:INTC">NASDAQ:INTC - Intel</option>
|
870 |
+
<option value="CAPITALCOM:BTCUSD">CAPITALCOM:BTCUSD - Bitcoin</option>
|
871 |
+
<option value="AMEX:GLD">AMEX:GLD - Gold ETF</option>
|
872 |
+
<option value="PEPPERSTONE:EURUSD">PEPPERSTONE:EURUSD - EUR/USD</option>
|
873 |
+
<option value="PEPPERSTONE:US500">PEPPERSTONE:US500 - S&P 500</option>
|
874 |
+
<option value="FX:USDJPY">FX:USDJPY - USD/JPY</option>
|
875 |
+
</select>
|
876 |
+
</div>
|
877 |
+
|
878 |
+
<div class="form-group">
|
879 |
+
<label class="block text-gray-700 mb-2 text-sm">Richtung:</label>
|
880 |
+
<select id="newTradeDirection" class="select-control">
|
881 |
+
<option value="long">Long</option>
|
882 |
+
<option value="short">Short</option>
|
883 |
+
</select>
|
884 |
+
</div>
|
885 |
+
|
886 |
+
<div class="form-group">
|
887 |
+
<label class="block text-gray-700 mb-2 text-sm">Einstiegspreis:</label>
|
888 |
+
<input type="number" step="0.0001" id="newTradeEntry" class="form-control" placeholder="z.B. 180.45">
|
889 |
+
</div>
|
890 |
+
|
891 |
+
<div class="form-group">
|
892 |
+
<label class="block text-gray-700 mb-2 text-sm">Stop-Loss:</label>
|
893 |
+
<input type="number" step="0.0001" id="newTradeStop" class="form-control" placeholder="z.B. 175.60">
|
894 |
+
</div>
|
895 |
+
|
896 |
+
<div class="form-group">
|
897 |
+
<label class="block text-gray-700 mb-2 text-sm">Take-Profit:</label>
|
898 |
+
<input type="number" step="0.0001" id="newTradeTarget" class="form-control" placeholder="z.B. 190.00">
|
899 |
+
</div>
|
900 |
+
|
901 |
+
<div class="form-group">
|
902 |
+
<label class="block text-gray-700 mb-2 text-sm">Position:</label>
|
903 |
+
<input type="text" id="newTradePosition" class="form-control" placeholder="z.B. 10 Anteile oder 0.5 Lots">
|
904 |
+
</div>
|
905 |
+
</div>
|
906 |
+
|
907 |
+
<div class="form-group mt-2">
|
908 |
+
<label class="block text-gray-700 mb-2 text-sm">Notizen:</label>
|
909 |
+
<textarea id="newTradeNotes" class="form-control h-20" placeholder="Trade-Begründung, Strategie, Beobachtungen..."></textarea>
|
910 |
+
</div>
|
911 |
+
|
912 |
+
<div class="mt-4 text-center">
|
913 |
+
<button class="btn-primary" onclick="addNewTrade()">Trade hinzufügen</button>
|
914 |
+
</div>
|
915 |
+
</div>
|
916 |
+
</div>
|
917 |
+
|
918 |
+
<div class="mt-6">
|
919 |
+
<div class="flex justify-between items-center mb-4">
|
920 |
+
<h3 class="font-semibold">Aktive Trades</h3>
|
921 |
+
<div class="flex gap-2">
|
922 |
+
<select id="tradeSortOption" class="select-control text-sm py-1" onchange="sortTrades()">
|
923 |
+
<option value="newest">Neueste zuerst</option>
|
924 |
+
<option value="oldest">Älteste zuerst</option>
|
925 |
+
<option value="profit">Höchster Gewinn</option>
|
926 |
+
<option value="loss">Höchster Verlust</option>
|
927 |
+
</select>
|
928 |
+
<button class="btn-primary text-sm py-1" onclick="refreshTrades()">
|
929 |
+
<i class="fas fa-sync-alt mr-1"></i> Aktualisieren
|
930 |
+
</button>
|
931 |
+
</div>
|
932 |
+
</div>
|
933 |
+
|
934 |
+
<div id="tradesList">
|
935 |
+
<div class="trade-item">
|
936 |
+
<div class="trade-symbol">NASDAQ:AAPL</div>
|
937 |
+
<div class="trade-details">Long @ 180.45 • Stop: 175.60 • Target: 190.00</div>
|
938 |
+
<div class="trade-pnl profit">+3.25%</div>
|
939 |
+
<div class="text-sm text-gray-500 mt-2">Eröffnet: Heute, 10:15 CET</div>
|
940 |
+
<div class="mt-3 text-sm">
|
941 |
+
<div class="font-medium">Notizen:</div>
|
942 |
+
<p class="text-gray-600">Unterstützungsbereich getestet, MACD zeigt bullisches Crossover. Steigende Volumenmuster bestätigen den Trend.</p>
|
943 |
+
</div>
|
944 |
+
<div class="trade-actions">
|
945 |
+
<button class="btn-primary text-xs py-1">Bearbeiten</button>
|
946 |
+
<button class="btn-danger text-xs py-1" onclick="removeTrade(this)">Entfernen</button>
|
947 |
+
</div>
|
948 |
+
</div>
|
949 |
+
|
950 |
+
<div class="trade-item">
|
951 |
+
<div class="trade-symbol">FX:EURUSD</div>
|
952 |
+
<div class="trade-details">Short @ 1.0890 • Stop: 1.0925 • Target: 1.0820</div>
|
953 |
+
<div class="trade-pnl loss">-0.12%</div>
|
954 |
+
<div class="text-sm text-gray-500 mt-2">Eröffnet: Gestern, 16:45 CET</div>
|
955 |
+
<div class="mt-3 text-sm">
|
956 |
+
<div class="font-medium">Notizen:</div>
|
957 |
+
<p class="text-gray-600">Widerstandszone erreicht, RSI im überkauften Bereich. Divergenz zum US Dollar Index, was auf Schwäche hindeutet.</p>
|
958 |
+
</div>
|
959 |
+
<div class="trade-actions">
|
960 |
+
<button class="btn-primary text-xs py-1">Bearbeiten</button>
|
961 |
+
<button class="btn-danger text-xs py-1" onclick="removeTrade(this)">Entfernen</button>
|
962 |
+
</div>
|
963 |
+
</div>
|
964 |
+
|
965 |
+
<div class="trade-item">
|
966 |
+
<div class="trade-symbol">CAPITALCOM:BTCUSD</div>
|
967 |
+
<div class="trade-details">Long @ 40250.00 • Stop: 39000.00 • Target: 45000.00</div>
|
968 |
+
<div class="trade-pnl profit">+7.47%</div>
|
969 |
+
<div class="text-sm text-gray-500 mt-2">Eröffnet: 12.05.2023, 09:30 CET</div>
|
970 |
+
<div class="mt-3 text-sm">
|
971 |
+
<div class="font-medium">Notizen:</div>
|
972 |
+
<p class="text-gray-600">Ausbruch über wichtiges Fibonacci-Retracement. On-Chain-Metriken deuten auf Akkumulation hin. Reduzierte Verkaufsaktivität der Miner.</p>
|
973 |
+
</div>
|
974 |
+
<div class="trade-actions">
|
975 |
+
<button class="btn-primary text-xs py-1">Bearbeiten</button>
|
976 |
+
<button class="btn-danger text-xs py-1" onclick="removeTrade(this)">Entfernen</button>
|
977 |
+
</div>
|
978 |
+
</div>
|
979 |
+
</div>
|
980 |
+
</div>
|
981 |
+
|
982 |
+
<div class="mt-6">
|
983 |
+
<h3 class="font-semibold mb-3">Trade-Statistiken</h3>
|
984 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
|
985 |
+
<div class="p-4 bg-white rounded-lg shadow-sm text-center">
|
986 |
+
<div class="text-gray-700 text-sm mb-1">Offene Trades</div>
|
987 |
+
<div class="text-2xl font-bold">3</div>
|
988 |
+
</div>
|
989 |
+
<div class="p-4 bg-white rounded-lg shadow-sm text-center">
|
990 |
+
<div class="text-gray-700 text-sm mb-1">Win Rate</div>
|
991 |
+
<div class="text-2xl font-bold text-green-600">67%</div>
|
992 |
+
</div>
|
993 |
+
<div class="p-4 bg-white rounded-lg shadow-sm text-center">
|
994 |
+
<div class="text-gray-700 text-sm mb-1">Durchschn. Gewinn</div>
|
995 |
+
<div class="text-2xl font-bold text-green-600">5.36%</div>
|
996 |
+
</div>
|
997 |
+
<div class="p-4 bg-white rounded-lg shadow-sm text-center">
|
998 |
+
<div class="text-gray-700 text-sm mb-1">Durchschn. Verlust</div>
|
999 |
+
<div class="text-2xl font-bold text-red-600">-0.12%</div>
|
1000 |
+
</div>
|
1001 |
+
</div>
|
1002 |
+
</div>
|
1003 |
+
</div>
|
1004 |
+
</div>
|
1005 |
+
</div>
|
1006 |
+
|
1007 |
+
<!-- Gemini Chat Popup -->
|
1008 |
+
<div class="chat-popup minimized" id="chatPopup">
|
1009 |
+
<div class="chat-header" onclick="toggleChat()">
|
1010 |
+
<div class="flex items-center">
|
1011 |
+
<i class="fas fa-robot mr-2"></i>
|
1012 |
+
<span>Gemini Trading Assistant</span>
|
1013 |
+
<span class="gemini-badge">AI</span>
|
1014 |
+
</div>
|
1015 |
+
<i class="fas fa-chevron-up" id="chatChevron"></i>
|
1016 |
+
</div>
|
1017 |
+
<div class="chat-body" id="chatBody">
|
1018 |
+
<div class="chat-message ai">
|
1019 |
+
<div class="message-content">
|
1020 |
+
Hallo! Ich bin dein Gemini Trading Assistant. Wie kann ich dir heute bei deinen Trading-Aktivitäten helfen?
|
1021 |
+
</div>
|
1022 |
+
</div>
|
1023 |
+
</div>
|
1024 |
+
<div class="chat-footer">
|
1025 |
+
<input type="text" id="chatInput" class="chat-input" placeholder="Frage stellen..." onkeypress="handleChatKeyPress(event)">
|
1026 |
+
<button class="btn-primary" onclick="sendChatMessage()">
|
1027 |
+
<i class="fas fa-paper-plane"></i>
|
1028 |
+
</button>
|
1029 |
+
</div>
|
1030 |
+
</div>
|
1031 |
+
|
1032 |
+
<script src="/static/js/main.js"></script>
|
1033 |
+
</body>
|
1034 |
+
</html>
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
flask==2.2.3
|
2 |
+
requests==2.28.2
|
3 |
+
gunicorn==20.1.0
|