-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathday_trading_agents.drawio
480 lines (480 loc) · 38.1 KB
/
day_trading_agents.drawio
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/25.0.2 Chrome/128.0.6613.186 Electron/32.2.5 Safari/537.36" version="25.0.2" pages="3">
<diagram id="c1hSBBAoWu44DYVpTtl6" name="day_trading_system">
<mxGraphModel dx="2390" dy="1423" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="548" pageHeight="120" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="OtThAEZf-ZVdJEkLoWCn-1" value="Main" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="78" y="80" width="150" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-2" value="Config" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="421" y="80" width="150" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-3" value="DayTradingAgents" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="621" y="80" width="152" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-4" value="MarketDataAgent" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="871" y="80" width="150" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-5" value="TechnicalAnalysisAgent" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1071" y="80" width="191" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-6" value="RiskManagementAgent" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1312" y="80" width="188" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-7" value="SignalStorage" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1550" y="80" width="150" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-8" value="MarketSchedule" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1750" y="80" width="150" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-9" value="Logger/Debug" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1950" y="80" width="150" height="1382" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-10" value="loop" style="shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width=40" parent="1" vertex="1">
<mxGeometry x="686" y="614" width="950" height="413" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-11" value="[For each stock]" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;" parent="OtThAEZf-ZVdJEkLoWCn-10" vertex="1">
<mxGeometry x="40" width="910" height="20" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-12" value="alt" style="shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width=30" parent="1" vertex="1">
<mxGeometry x="142" y="569" width="1694" height="605" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-13" value="[Trading Day]" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;" parent="OtThAEZf-ZVdJEkLoWCn-12" vertex="1">
<mxGeometry x="30" width="1664" height="20" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-14" value="[Not Trading Day]" style="shape=line;dashed=1;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=middle;align=center;strokeColor=#B3B3B3;" parent="OtThAEZf-ZVdJEkLoWCn-12" vertex="1">
<mxGeometry y="473" width="1694" height="4" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-15" value="alt" style="shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width=30" parent="1" vertex="1">
<mxGeometry x="142" y="1184" width="1894" height="137" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-16" value="[Error Occurs]" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;" parent="OtThAEZf-ZVdJEkLoWCn-15" vertex="1">
<mxGeometry x="30" width="1864" height="20" as="geometry" />
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-17" value="Configure logging & debug" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-1" target="OtThAEZf-ZVdJEkLoWCn-9" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1098" y="181" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-18" value="Create Config(openai_api_key, paths)" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-1" target="OtThAEZf-ZVdJEkLoWCn-2" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="333" y="227" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-19" value="Create DayTradingAgents(config)" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-1" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="434" y="273" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-20" value="Create MarketDataAgent" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-4" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="830" y="319" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-21" value="Create TechnicalAnalysisAgent" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-5" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="940" y="365" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-22" value="Create RiskManagementAgent" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-6" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1060" y="411" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-23" value="Initialize SignalStorage" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-7" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1170" y="457" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-24" value="run_trading_session()" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-1" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="434" y="503" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-25" value="is_trading_day()" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-8" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1270" y="549" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-26" value="Collect market data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-4" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="830" y="685" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-27" value="Market data result" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-4" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="833" y="731" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-28" value="Analyse market data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-5" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="940" y="777" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-29" value="Technical signals" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-5" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="943" y="823" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-30" value="Evaluate risks" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-6" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1060" y="869" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-31" value="Risk assessment" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-6" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1063" y="915" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-32" value="Save trading signals" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-7" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1170" y="961" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-33" value="Storage confirmation" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-7" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1173" y="1007" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-34" value="Next trading day" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-8" target="OtThAEZf-ZVdJEkLoWCn-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1273" y="1108" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-35" value="Exit with next day info" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-1" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="437" y="1154" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-36" value="Log error details" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-9" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1370" y="1255" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-37" value="Raise exception" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-1" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="437" y="1301" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="OtThAEZf-ZVdJEkLoWCn-38" value="Session complete" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="OtThAEZf-ZVdJEkLoWCn-3" target="OtThAEZf-ZVdJEkLoWCn-1" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="437" y="1357" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="y8Jde4-QZfXfuG0g60Hj" name="day_trading_system_advanced">
<mxGraphModel dx="2049" dy="1220" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="600" pageHeight="120" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="vJbz9d3yro5JNe0HThfM-1" value="Main" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="33" y="30" width="150" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-2" value="Market Scheduler" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="265" y="30" width="150" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-3" value="DayTradingAgents" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="465" y="30" width="152" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-4" value="Market Data Agent
(Data Collection)" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="717" y="30" width="155" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-5" value="Technical Analysis Agent
(Signal Generation)" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="922" y="30" width="199" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-6" value="Risk Management Agent
(Risk Assessment)" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1171" y="30" width="196" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-7" value="Price Fetcher
(Alpha Vantage)" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1417" y="30" width="150" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-8" value="Signal Storage" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" parent="1" vertex="1">
<mxGeometry x="1617" y="30" width="150" height="1038" as="geometry" />
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-9" value="Check trading hours" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-1" target="vJbz9d3yro5JNe0HThfM-2" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="233" y="131" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-10" value="Confirm market open" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-2" target="vJbz9d3yro5JNe0HThfM-1" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="236" y="177" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-11" value="Initialize trading system" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-1" target="vJbz9d3yro5JNe0HThfM-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="333" y="223" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-12" value="Task: Collect market data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-3" target="vJbz9d3yro5JNe0HThfM-4" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="676" y="269" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-13" value="Request price data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-4" target="vJbz9d3yro5JNe0HThfM-7" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1151" y="315" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-14" value="Return price data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-7" target="vJbz9d3yro5JNe0HThfM-4" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1154" y="361" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-15" value="Return validated data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-4" target="vJbz9d3yro5JNe0HThfM-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="679" y="407" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-16" value="Task: Generate signals" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-3" target="vJbz9d3yro5JNe0HThfM-5" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="790" y="453" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-17" value="Calculate indicators
(RSI, MACD, BB)" style="curved=1;endArrow=block;rounded=0;" parent="1" source="vJbz9d3yro5JNe0HThfM-5" target="vJbz9d3yro5JNe0HThfM-5" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1072" y="517" />
<mxPoint x="1072" y="547" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-18" value="Return trading signals" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-5" target="vJbz9d3yro5JNe0HThfM-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="793" y="593" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-19" value="Task: Assess risks" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-3" target="vJbz9d3yro5JNe0HThfM-6" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="913" y="639" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-20" value="Evaluate positions
and market conditions" style="curved=1;endArrow=block;rounded=0;" parent="1" source="vJbz9d3yro5JNe0HThfM-6" target="vJbz9d3yro5JNe0HThfM-6" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1320" y="703" />
<mxPoint x="1320" y="733" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-21" value="Return risk assessment" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-6" target="vJbz9d3yro5JNe0HThfM-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="916" y="779" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-22" value="Save signals and analysis" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-3" target="vJbz9d3yro5JNe0HThfM-8" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1125" y="825" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-23" value="Confirm storage" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-8" target="vJbz9d3yro5JNe0HThfM-3" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1128" y="871" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-24" value="Complete trading cycle" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-3" target="vJbz9d3yro5JNe0HThfM-1" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="336" y="917" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="vJbz9d3yro5JNe0HThfM-25" value="Schedule next session" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" parent="1" source="vJbz9d3yro5JNe0HThfM-1" target="vJbz9d3yro5JNe0HThfM-2" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="233" y="963" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="uSTL5I1DikLZV0MGWqsX" name="minimal_market_news_agent">
<mxGraphModel dx="1434" dy="854" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="415" pageHeight="100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="YZYSj3ab67jh2KVzIDdV-1" value="Main" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" vertex="1" parent="1">
<mxGeometry x="20" y="20" width="150" height="951" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-2" value="NewsAgent" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" vertex="1" parent="1">
<mxGeometry x="251" y="20" width="150" height="951" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-3" value="AlphaVantage API" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" vertex="1" parent="1">
<mxGeometry x="455" y="20" width="150" height="951" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-4" value="Live Display" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;container=1;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","elbow":"vertical","curved":0,"rounded":0};size=65;" vertex="1" parent="1">
<mxGeometry x="655" y="20" width="150" height="951" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-5" value="alt" style="shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width=30" vertex="1" parent="1">
<mxGeometry x="315" y="628" width="226" height="91" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-6" value="[Every 60s]" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="YZYSj3ab67jh2KVzIDdV-5">
<mxGeometry x="30" width="196" height="20" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-7" value="loop" style="shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width=40" vertex="1" parent="1">
<mxGeometry x="236" y="233" width="580" height="496" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-8" value="[Every Second]" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="YZYSj3ab67jh2KVzIDdV-7">
<mxGeometry x="40" width="540" height="20" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-9" value="opt" style="shape=umlFrame;dashed=1;pointerEvents=0;dropTarget=0;strokeColor=#B3B3B3;height=20;width=30" vertex="1" parent="1">
<mxGeometry x="84" y="739" width="253" height="137" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-10" value="[User Interrupt]" style="text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="YZYSj3ab67jh2KVzIDdV-9">
<mxGeometry x="30" width="223" height="20" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-11" value="Create(api_key)" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-1" target="YZYSj3ab67jh2KVzIDdV-2">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="219" y="121" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-12" value="NewsAgent Instance" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-2" target="YZYSj3ab67jh2KVzIDdV-1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="222" y="167" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-13" value="run()" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-1" target="YZYSj3ab67jh2KVzIDdV-2">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="219" y="213" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-14" value="fetch_news()" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-2" target="YZYSj3ab67jh2KVzIDdV-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="437" y="304" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-15" value="Raw News Data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-3" target="YZYSj3ab67jh2KVzIDdV-2">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="440" y="350" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-16" value="process_news()" style="curved=1;endArrow=block;rounded=0;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-2" target="YZYSj3ab67jh2KVzIDdV-2">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="377" y="396" />
<mxPoint x="377" y="426" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-17" value="update_display()" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-2" target="YZYSj3ab67jh2KVzIDdV-4">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="537" y="540" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-18" value="Refresh news data" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-2" target="YZYSj3ab67jh2KVzIDdV-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="437" y="699" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-19" value="KeyboardInterrupt" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-1" target="YZYSj3ab67jh2KVzIDdV-2">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="219" y="810" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-20" value="Terminate Programme" style="verticalAlign=bottom;edgeStyle=elbowEdgeStyle;elbow=vertical;curved=0;rounded=0;dashed=1;dashPattern=2 3;endArrow=block;" edge="1" parent="1" source="YZYSj3ab67jh2KVzIDdV-2" target="YZYSj3ab67jh2KVzIDdV-1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="222" y="856" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-21" value="Transform data into
display format" style="fillColor=#ffff88;strokeColor=#9E916F;" vertex="1" parent="1">
<mxGeometry x="246" y="446" width="161" height="68" as="geometry" />
</mxCell>
<mxCell id="YZYSj3ab67jh2KVzIDdV-22" value="Scroll news items
every 30s" style="fillColor=#ffff88;strokeColor=#9E916F;" vertex="1" parent="1">
<mxGeometry x="655" y="560" width="150" height="68" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>