dixitramjendra commited on
Commit
9b9b68f
·
1 Parent(s): 3f0197a

Add backend heartbeat, robust data fetching, and auto-restart strategy

Browse files
forex_macd_dashboard.html CHANGED
@@ -436,6 +436,9 @@
436
  <div id="visitorCounter"
437
  style="margin-top: 0.5rem; font-size: 0.9rem; color: var(--accent); font-weight: 600;">
438
  👥 Visitors: <span id="activeCount">...</span> Active • <span id="visitorCount">...</span> Total
 
 
 
439
  </div>
440
 
441
  </header>
@@ -603,6 +606,15 @@
603
  container.className = 'grid'; // Ensure grid layout
604
  lastUpdated.textContent = `Last Updated: ${new Date(data.last_updated).toLocaleString()}`;
605
 
 
 
 
 
 
 
 
 
 
606
  // Filter by category
607
  let filteredData = data.data;
608
  if (currentCategory === 'Active') {
 
436
  <div id="visitorCounter"
437
  style="margin-top: 0.5rem; font-size: 0.9rem; color: var(--accent); font-weight: 600;">
438
  👥 Visitors: <span id="activeCount">...</span> Active • <span id="visitorCount">...</span> Total
439
+ <br>
440
+ <span id="backendStatus" style="color: var(--text-secondary); font-size: 0.8rem;">Backend:
441
+ Checking...</span>
442
  </div>
443
 
444
  </header>
 
606
  container.className = 'grid'; // Ensure grid layout
607
  lastUpdated.textContent = `Last Updated: ${new Date(data.last_updated).toLocaleString()}`;
608
 
609
+ const backendStatus = document.getElementById('backendStatus');
610
+ if (data.backend_heartbeat) {
611
+ backendStatus.textContent = `Backend Last Run: ${data.backend_heartbeat}`;
612
+ backendStatus.style.color = 'var(--bullish)';
613
+ } else {
614
+ backendStatus.textContent = 'Backend: Status Unknown';
615
+ backendStatus.style.color = 'var(--bearish)';
616
+ }
617
+
618
  // Filter by category
619
  let filteredData = data.data;
620
  if (currentCategory === 'Active') {
forex_macd_signals.json CHANGED
@@ -1,10 +1,10 @@
1
  {
2
- "last_updated": "2025-12-23T21:30:51.461091",
3
  "data": [
4
  {
5
  "instrument": "US Oil (WTI)",
6
  "flag": "\ud83d\udee2\ufe0f",
7
- "ltp": 57.880001068115234,
8
  "daily": {
9
  "macd_line": -0.7823531461993483,
10
  "bias": "BEARISH",
@@ -16,103 +16,103 @@
16
  "label": "4H MOM"
17
  },
18
  "h1": {
19
- "histogram": -0.03981796731474094,
20
  "status": "BEARISH_MOM",
21
- "close": 57.790000915527344,
22
  "label": "1H Entry",
23
- "ema_200": 57.191685132553374,
24
- "rsi": 47.572840704129895
25
  },
26
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
27
  "signal": null,
28
  "category": "Metals/Energy",
29
- "timestamp": "2025-12-23T21:30:48.093108"
30
  },
31
  {
32
  "instrument": "MCX Crude Oil",
33
  "flag": "\ud83c\uddee\ud83c\uddf3\ud83d\udee2\ufe0f",
34
- "ltp": 5180.954715665284,
35
  "daily": {
36
  "macd_line": 0.4011010058743594,
37
  "bias": "NEUTRAL",
38
  "label": "4H Trend"
39
  },
40
  "h4": {
41
- "histogram": -0.03981796731474094,
42
  "bias": "BEARISH",
43
  "label": "1H MOM"
44
  },
45
  "h1": {
46
- "histogram": -0.030666051976663812,
47
  "status": "BEARISH_MOM",
48
- "close": 57.90999984741211,
49
  "label": "15m Entry",
50
- "ema_200": 57.4649546479239,
51
- "rsi": 38.57132736418182
52
  },
53
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
54
  "signal": null,
55
  "category": "Intraday IndianMarket",
56
- "timestamp": "2025-12-23T21:30:48.768592"
57
  },
58
  {
59
  "instrument": "MCX Natural Gas",
60
  "flag": "\ud83c\uddee\ud83c\uddf3\ud83d\udd25",
61
- "ltp": 330.1202565827789,
62
  "daily": {
63
  "macd_line": -0.0695408324403588,
64
  "bias": "BEARISH",
65
  "label": "4H Trend"
66
  },
67
  "h4": {
68
- "histogram": -0.024651478127150045,
69
  "bias": "NEUTRAL",
70
  "label": "1H MOM"
71
  },
72
  "h1": {
73
- "histogram": 0.009922686706971873,
74
  "status": "BULLISH_MOM",
75
- "close": 3.678999900817871,
76
  "label": "15m Entry",
77
- "ema_200": 3.902795816178256,
78
- "rsi": 60.92434407253544
79
  },
80
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
81
  "signal": null,
82
  "category": "Intraday IndianMarket",
83
- "timestamp": "2025-12-23T21:30:48.254281"
84
  },
85
  {
86
  "instrument": "MCX Copper",
87
  "flag": "\ud83c\uddee\ud83c\uddf3\ud83e\uddf1",
88
- "ltp": 1123.2067144115972,
89
  "daily": {
90
  "macd_line": 0.030947624194040735,
91
  "bias": "BULLISH",
92
  "label": "4H Trend"
93
  },
94
  "h4": {
95
- "histogram": 0.005734751093586343,
96
  "bias": "NEUTRAL",
97
  "label": "1H MOM"
98
  },
99
  "h1": {
100
- "histogram": -0.007386321478082412,
101
  "status": "BEARISH_MOM",
102
- "close": 5.54449987411499,
103
  "label": "15m Entry",
104
- "ema_200": 5.512732733227546,
105
- "rsi": 42.14044902606827
106
  },
107
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
108
  "signal": null,
109
  "category": "Intraday IndianMarket",
110
- "timestamp": "2025-12-23T21:30:48.366455"
111
  },
112
  {
113
  "instrument": "Gold",
114
  "flag": "\ud83e\udd47",
115
- "ltp": 4484.7998046875,
116
  "daily": {
117
  "macd_line": 77.15796588483772,
118
  "bias": "BULLISH",
@@ -124,22 +124,22 @@
124
  "label": "4H MOM"
125
  },
126
  "h1": {
127
- "histogram": -5.95310957651564,
128
  "status": "BEARISH_MOM",
129
- "close": 4476.7001953125,
130
  "label": "1H Entry",
131
- "ema_200": 4371.929329341489,
132
- "rsi": 38.808381821041046
133
  },
134
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
135
  "signal": null,
136
  "category": "Metals/Energy",
137
- "timestamp": "2025-12-23T21:30:48.350491"
138
  },
139
  {
140
  "instrument": "Silver",
141
  "flag": "\ud83e\udd48",
142
- "ltp": 69.75499725341797,
143
  "daily": {
144
  "macd_line": 4.001420702327515,
145
  "bias": "BULLISH",
@@ -151,22 +151,22 @@
151
  "label": "4H MOM"
152
  },
153
  "h1": {
154
- "histogram": -0.017155428874480183,
155
- "status": "SELL_CROSS",
156
- "close": 69.55000305175781,
157
  "label": "1H Entry",
158
- "ema_200": 65.46296365498142,
159
- "rsi": 54.44168186729561
160
  },
161
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
162
  "signal": null,
163
  "category": "Metals/Energy",
164
- "timestamp": "2025-12-23T21:30:48.326510"
165
  },
166
  {
167
  "instrument": "Brent Crude Oil",
168
  "flag": "\ud83c\uddec\ud83c\udde7\ud83d\udee2\ufe0f",
169
- "ltp": 61.380001068115234,
170
  "daily": {
171
  "macd_line": -0.8561372539654784,
172
  "bias": "BEARISH",
@@ -178,22 +178,22 @@
178
  "label": "4H MOM"
179
  },
180
  "h1": {
181
- "histogram": -0.09198715199537863,
182
  "status": "BEARISH_MOM",
183
- "close": 61.380001068115234,
184
  "label": "1H Entry",
185
- "ema_200": 61.01298951875337,
186
- "rsi": 29.787406730046044
187
  },
188
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
189
  "signal": null,
190
  "category": "Metals/Energy",
191
- "timestamp": "2025-12-23T21:30:48.341439"
192
  },
193
  {
194
  "instrument": "Natural Gas",
195
  "flag": "\ud83d\udd25",
196
- "ltp": 3.687999963760376,
197
  "daily": {
198
  "macd_line": -0.09617675735424847,
199
  "bias": "NEUTRAL",
@@ -205,22 +205,22 @@
205
  "label": "4H MOM"
206
  },
207
  "h1": {
208
- "histogram": -0.024651478127150045,
209
  "status": "BEARISH_MOM",
210
- "close": 3.677999973297119,
211
  "label": "1H Entry",
212
- "ema_200": 4.107784922511517,
213
- "rsi": 25.925963863549825
214
  },
215
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
216
  "signal": null,
217
  "category": "Metals/Energy",
218
- "timestamp": "2025-12-23T21:30:48.349659"
219
  },
220
  {
221
  "instrument": "Platinum",
222
  "flag": "\ud83d\udc8d",
223
- "ltp": 2255.10009765625,
224
  "daily": {
225
  "macd_line": 108.24651117953658,
226
  "bias": "BULLISH",
@@ -232,22 +232,22 @@
232
  "label": "4H MOM"
233
  },
234
  "h1": {
235
- "histogram": 0.3829831686182956,
236
  "status": "BULLISH_MOM",
237
- "close": 2241.39990234375,
238
  "label": "1H Entry",
239
- "ema_200": 1945.0270500172574,
240
- "rsi": 67.2584991525573
241
  },
242
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
243
  "signal": null,
244
  "category": "Metals/Energy",
245
- "timestamp": "2025-12-23T21:30:48.404429"
246
  },
247
  {
248
  "instrument": "Palladium",
249
  "flag": "\ud83d\udc8e",
250
- "ltp": 1955.0,
251
  "daily": {
252
  "macd_line": 80.96527600943136,
253
  "bias": "BULLISH",
@@ -259,22 +259,22 @@
259
  "label": "4H MOM"
260
  },
261
  "h1": {
262
- "histogram": 4.6165903478881205,
263
  "status": "BULLISH_MOM",
264
- "close": 1952.5,
265
  "label": "1H Entry",
266
- "ema_200": 1725.5922635458137,
267
- "rsi": 68.19277108433735
268
  },
269
  "overall_status": "LOOKING_FOR_BUY",
270
  "signal": null,
271
  "category": "Metals/Energy",
272
- "timestamp": "2025-12-23T21:30:48.356792"
273
  },
274
  {
275
  "instrument": "EUR/USD",
276
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\uddfa\ud83c\uddf8",
277
- "ltp": 1.1778563261032104,
278
  "daily": {
279
  "macd_line": 0.003774981869139271,
280
  "bias": "BULLISH",
@@ -296,12 +296,12 @@
296
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
297
  "signal": null,
298
  "category": "Forex",
299
- "timestamp": "2025-12-23T21:30:49.102076"
300
  },
301
  {
302
  "instrument": "GBP/USD",
303
  "flag": "\ud83c\uddec\ud83c\udde7\ud83c\uddfa\ud83c\uddf8",
304
- "ltp": 1.3483812808990479,
305
  "daily": {
306
  "macd_line": 0.004743802284778553,
307
  "bias": "BULLISH",
@@ -323,12 +323,12 @@
323
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
324
  "signal": null,
325
  "category": "Forex",
326
- "timestamp": "2025-12-23T21:30:49.372292"
327
  },
328
  {
329
  "instrument": "USD/JPY",
330
  "flag": "\ud83c\uddfa\ud83c\uddf8\ud83c\uddef\ud83c\uddf5",
331
- "ltp": 156.36500549316406,
332
  "daily": {
333
  "macd_line": 0.42242833584080586,
334
  "bias": "BULLISH",
@@ -350,12 +350,12 @@
350
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
351
  "signal": null,
352
  "category": "Forex",
353
- "timestamp": "2025-12-23T21:30:49.183352"
354
  },
355
  {
356
  "instrument": "AUD/USD",
357
  "flag": "\ud83c\udde6\ud83c\uddfa\ud83c\uddfa\ud83c\uddf8",
358
- "ltp": 0.6693440675735474,
359
  "daily": {
360
  "macd_line": 0.0025585195388049264,
361
  "bias": "BULLISH",
@@ -377,12 +377,12 @@
377
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
378
  "signal": null,
379
  "category": "Forex",
380
- "timestamp": "2025-12-23T21:30:49.429804"
381
  },
382
  {
383
  "instrument": "USD/CHF",
384
  "flag": "\ud83c\uddfa\ud83c\uddf8\ud83c\udde8\ud83c\udded",
385
- "ltp": 0.7897300124168396,
386
  "daily": {
387
  "macd_line": -0.001923955315835113,
388
  "bias": "BEARISH",
@@ -404,12 +404,12 @@
404
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
405
  "signal": null,
406
  "category": "Forex",
407
- "timestamp": "2025-12-23T21:30:49.157125"
408
  },
409
  {
410
  "instrument": "NZD/USD",
411
  "flag": "\ud83c\uddf3\ud83c\uddff\ud83c\uddfa\ud83c\uddf8",
412
- "ltp": 0.5830903649330139,
413
  "daily": {
414
  "macd_line": 0.0021001203523307588,
415
  "bias": "NEUTRAL",
@@ -431,12 +431,12 @@
431
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
432
  "signal": null,
433
  "category": "Forex",
434
- "timestamp": "2025-12-23T21:30:49.099467"
435
  },
436
  {
437
  "instrument": "USD/CAD",
438
  "flag": "\ud83c\uddfa\ud83c\uddf8\ud83c\udde8\ud83c\udde6",
439
- "ltp": 1.371000051498413,
440
  "daily": {
441
  "macd_line": -0.006545036458240894,
442
  "bias": "BEARISH",
@@ -473,12 +473,12 @@
473
  "category": "Forex"
474
  },
475
  "category": "Forex",
476
- "timestamp": "2025-12-23T21:30:49.177568"
477
  },
478
  {
479
  "instrument": "EUR/GBP",
480
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\uddec\ud83c\udde7",
481
- "ltp": 0.8732799887657166,
482
  "daily": {
483
  "macd_line": -0.0003033810051809027,
484
  "bias": "NEUTRAL",
@@ -500,12 +500,12 @@
500
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
501
  "signal": null,
502
  "category": "Forex",
503
- "timestamp": "2025-12-23T21:30:49.329881"
504
  },
505
  {
506
  "instrument": "EUR/JPY",
507
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\uddef\ud83c\uddf5",
508
- "ltp": 184.08200073242188,
509
  "daily": {
510
  "macd_line": 1.0789263423318687,
511
  "bias": "BULLISH",
@@ -527,12 +527,12 @@
527
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
528
  "signal": null,
529
  "category": "Forex",
530
- "timestamp": "2025-12-23T21:30:49.239917"
531
  },
532
  {
533
  "instrument": "GBP/JPY",
534
  "flag": "\ud83c\uddec\ud83c\udde7\ud83c\uddef\ud83c\uddf5",
535
- "ltp": 210.7830047607422,
536
  "daily": {
537
  "macd_line": 1.3001802677899548,
538
  "bias": "BULLISH",
@@ -554,12 +554,12 @@
554
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
555
  "signal": null,
556
  "category": "Forex",
557
- "timestamp": "2025-12-23T21:30:49.740815"
558
  },
559
  {
560
  "instrument": "AUD/JPY",
561
  "flag": "\ud83c\udde6\ud83c\uddfa\ud83c\uddef\ud83c\uddf5",
562
- "ltp": 104.60299682617188,
563
  "daily": {
564
  "macd_line": 0.6754105877940759,
565
  "bias": "BULLISH",
@@ -581,7 +581,7 @@
581
  "overall_status": "LOOKING_FOR_BUY",
582
  "signal": null,
583
  "category": "Forex",
584
- "timestamp": "2025-12-23T21:30:49.875166"
585
  },
586
  {
587
  "instrument": "NZD/JPY",
@@ -608,12 +608,12 @@
608
  "overall_status": "LOOKING_FOR_BUY",
609
  "signal": null,
610
  "category": "Forex",
611
- "timestamp": "2025-12-23T21:30:49.868430"
612
  },
613
  {
614
  "instrument": "GBP/CHF",
615
  "flag": "\ud83c\uddec\ud83c\udde7\ud83c\udde8\ud83c\udded",
616
- "ltp": 1.0648499727249146,
617
  "daily": {
618
  "macd_line": 0.0012057973629191476,
619
  "bias": "NEUTRAL",
@@ -635,12 +635,12 @@
635
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
636
  "signal": null,
637
  "category": "Forex",
638
- "timestamp": "2025-12-23T21:30:50.212822"
639
  },
640
  {
641
  "instrument": "EUR/CAD",
642
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\udde8\ud83c\udde6",
643
- "ltp": 1.6139899492263794,
644
  "daily": {
645
  "macd_line": -0.0023671145816888117,
646
  "bias": "NEUTRAL",
@@ -662,12 +662,12 @@
662
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
663
  "signal": null,
664
  "category": "Forex",
665
- "timestamp": "2025-12-23T21:30:50.227595"
666
  },
667
  {
668
  "instrument": "AUD/CAD",
669
  "flag": "\ud83c\udde6\ud83c\uddfa\ud83c\udde8\ud83c\udde6",
670
- "ltp": 0.9171599745750427,
671
  "daily": {
672
  "macd_line": -0.0007331821637314162,
673
  "bias": "NEUTRAL",
@@ -689,12 +689,12 @@
689
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
690
  "signal": null,
691
  "category": "Forex",
692
- "timestamp": "2025-12-23T21:30:50.485933"
693
  },
694
  {
695
  "instrument": "CAD/JPY",
696
  "flag": "\ud83c\udde8\ud83c\udde6\ud83c\uddef\ud83c\uddf5",
697
- "ltp": 114.04299926757812,
698
  "daily": {
699
  "macd_line": 0.8281172260950456,
700
  "bias": "BULLISH",
@@ -716,12 +716,12 @@
716
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
717
  "signal": null,
718
  "category": "Forex",
719
- "timestamp": "2025-12-23T21:30:50.232547"
720
  },
721
  {
722
  "instrument": "CHF/JPY",
723
  "flag": "\ud83c\udde8\ud83c\udded\ud83c\uddef\ud83c\uddf5",
724
- "ltp": 197.93499755859375,
725
  "daily": {
726
  "macd_line": 0.9976381001133916,
727
  "bias": "BULLISH",
@@ -743,196 +743,196 @@
743
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
744
  "signal": null,
745
  "category": "Forex",
746
- "timestamp": "2025-12-23T21:30:50.215487"
747
  },
748
  {
749
  "instrument": "Bitcoin",
750
  "flag": "\u20bf",
751
- "ltp": 87368.640625,
752
  "daily": {
753
- "macd_line": 86.84623872014345,
754
  "bias": "BULLISH",
755
  "label": "4H Trend"
756
  },
757
  "h4": {
758
- "histogram": -73.09778405311067,
759
  "bias": "BEARISH",
760
  "label": "1H MOM"
761
  },
762
  "h1": {
763
- "histogram": -49.25017272352693,
764
  "status": "BEARISH_MOM",
765
- "close": 87350.953125,
766
  "label": "15m Entry",
767
- "ema_200": 88260.13659008383,
768
- "rsi": 40.86950876835048
769
  },
770
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
771
  "signal": null,
772
  "category": "Crypto Scalping",
773
- "timestamp": "2025-12-23T21:30:50.384944"
774
  },
775
  {
776
  "instrument": "Ethereum",
777
  "flag": "\u039e",
778
- "ltp": 2924.622802734375,
779
  "daily": {
780
- "macd_line": 7.233474573111835,
781
  "bias": "BULLISH",
782
  "label": "4H Trend"
783
  },
784
  "h4": {
785
- "histogram": -5.911258401117863,
786
  "bias": "BEARISH",
787
  "label": "1H MOM"
788
  },
789
  "h1": {
790
- "histogram": -3.3772471056917386,
791
  "status": "BEARISH_MOM",
792
- "close": 2920.95703125,
793
  "label": "15m Entry",
794
- "ema_200": 2987.271880914063,
795
- "rsi": 25.096094486348605
796
  },
797
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
798
  "signal": null,
799
  "category": "Crypto Scalping",
800
- "timestamp": "2025-12-23T21:30:50.550943"
801
  },
802
  {
803
  "instrument": "Solana",
804
  "flag": "\u2600\ufe0f",
805
- "ltp": 123.22874450683594,
806
  "daily": {
807
- "macd_line": -0.1906531286933557,
808
  "bias": "BEARISH",
809
  "label": "4H Trend"
810
  },
811
  "h4": {
812
- "histogram": -0.23282539041695116,
813
- "bias": "BEARISH",
814
  "label": "1H MOM"
815
  },
816
  "h1": {
817
- "histogram": -0.09392854745500451,
818
  "status": "BEARISH_MOM",
819
- "close": 123.01471710205078,
820
  "label": "15m Entry",
821
- "ema_200": 125.28683967690532,
822
- "rsi": 27.569481446531924
823
  },
824
- "overall_status": "LOOKING_FOR_SELL",
825
  "signal": null,
826
  "category": "Crypto Scalping",
827
- "timestamp": "2025-12-23T21:30:51.105428"
828
  },
829
  {
830
  "instrument": "Ripple",
831
  "flag": "\ud83d\udca7",
832
- "ltp": 1.8810594081878662,
833
  "daily": {
834
- "macd_line": -0.0023622831015082113,
835
  "bias": "BEARISH",
836
  "label": "4H Trend"
837
  },
838
  "h4": {
839
- "histogram": -0.0006222052605055432,
840
- "bias": "BEARISH",
841
  "label": "1H MOM"
842
  },
843
  "h1": {
844
- "histogram": -0.0014566988456949936,
845
  "status": "BEARISH_MOM",
846
- "close": 1.8821125030517578,
847
  "label": "15m Entry",
848
- "ema_200": 1.904332053076785,
849
- "rsi": 36.27533458182198
850
  },
851
- "overall_status": "LOOKING_FOR_SELL",
852
  "signal": null,
853
  "category": "Crypto Scalping",
854
- "timestamp": "2025-12-23T21:30:51.401422"
855
  },
856
  {
857
  "instrument": "Cardano",
858
  "flag": "\u20b3",
859
- "ltp": 0.36064985394477844,
860
  "daily": {
861
- "macd_line": -0.0019152961174927485,
862
  "bias": "BEARISH",
863
  "label": "4H Trend"
864
  },
865
  "h4": {
866
- "histogram": -0.0009716331022081245,
867
- "bias": "BEARISH",
868
  "label": "1H MOM"
869
  },
870
  "h1": {
871
- "histogram": -0.00027511745378601513,
872
  "status": "BEARISH_MOM",
873
- "close": 0.36123454570770264,
874
  "label": "15m Entry",
875
- "ema_200": 0.3680550884161155,
876
- "rsi": 36.74109014848785
877
  },
878
- "overall_status": "LOOKING_FOR_SELL",
879
  "signal": null,
880
  "category": "Crypto Scalping",
881
- "timestamp": "2025-12-23T21:30:51.168849"
882
  },
883
  {
884
  "instrument": "Dogecoin",
885
  "flag": "\ud83d\udc15",
886
- "ltp": 0.1293218582868576,
887
  "daily": {
888
- "macd_line": 0.0003568370089110928,
889
  "bias": "NEUTRAL",
890
  "label": "4H Trend"
891
  },
892
  "h4": {
893
- "histogram": -0.0003086353269876665,
894
- "bias": "BEARISH",
895
  "label": "1H MOM"
896
  },
897
  "h1": {
898
- "histogram": -9.729721259629705e-05,
899
  "status": "BEARISH_MOM",
900
- "close": 0.12911653518676758,
901
  "label": "15m Entry",
902
- "ema_200": 0.1313788932177768,
903
- "rsi": 35.59171221558408
904
  },
905
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
906
  "signal": null,
907
  "category": "Crypto Scalping",
908
- "timestamp": "2025-12-23T21:30:51.454720"
909
  },
910
  {
911
  "instrument": "Polkadot",
912
  "flag": "\u26ab",
913
- "ltp": 1.7459012269973755,
914
  "daily": {
915
- "macd_line": -0.019445041994388568,
916
  "bias": "BEARISH",
917
  "label": "4H Trend"
918
  },
919
  "h4": {
920
- "histogram": -0.0021470517959627736,
921
- "bias": "BEARISH",
922
  "label": "1H MOM"
923
  },
924
  "h1": {
925
- "histogram": -0.00133565256215372,
926
  "status": "BEARISH_MOM",
927
- "close": 1.7473081350326538,
928
  "label": "15m Entry",
929
- "ema_200": 1.7884512306277982,
930
- "rsi": 34.1303142068369
931
  },
932
- "overall_status": "LOOKING_FOR_SELL",
933
  "signal": null,
934
  "category": "Crypto Scalping",
935
- "timestamp": "2025-12-23T21:30:51.457258"
936
  },
937
  {
938
  "instrument": "Nifty 50",
@@ -959,7 +959,7 @@
959
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
960
  "signal": null,
961
  "category": "Intraday IndianMarket",
962
- "timestamp": "2025-12-23T21:30:50.947764"
963
  },
964
  {
965
  "instrument": "Bank Nifty",
@@ -986,7 +986,7 @@
986
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
987
  "signal": null,
988
  "category": "Intraday IndianMarket",
989
- "timestamp": "2025-12-23T21:30:50.966116"
990
  },
991
  {
992
  "instrument": "Sensex",
@@ -1013,7 +1013,7 @@
1013
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
1014
  "signal": null,
1015
  "category": "Intraday IndianMarket",
1016
- "timestamp": "2025-12-23T21:30:51.217786"
1017
  }
1018
  ]
1019
  }
 
1
  {
2
+ "last_updated": "2025-12-23T21:42:40.785837",
3
  "data": [
4
  {
5
  "instrument": "US Oil (WTI)",
6
  "flag": "\ud83d\udee2\ufe0f",
7
+ "ltp": 57.849998474121094,
8
  "daily": {
9
  "macd_line": -0.7823531461993483,
10
  "bias": "BEARISH",
 
16
  "label": "4H MOM"
17
  },
18
  "h1": {
19
+ "histogram": -0.054294561308757844,
20
  "status": "BEARISH_MOM",
21
+ "close": 57.779998779296875,
22
  "label": "1H Entry",
23
+ "ema_200": 57.19753899968515,
24
+ "rsi": 44.999866485086386
25
  },
26
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
27
  "signal": null,
28
  "category": "Metals/Energy",
29
+ "timestamp": "2025-12-23T21:42:38.153477"
30
  },
31
  {
32
  "instrument": "MCX Crude Oil",
33
  "flag": "\ud83c\uddee\ud83c\uddf3\ud83d\udee2\ufe0f",
34
+ "ltp": 5178.26912344055,
35
  "daily": {
36
  "macd_line": 0.4011010058743594,
37
  "bias": "NEUTRAL",
38
  "label": "4H Trend"
39
  },
40
  "h4": {
41
+ "histogram": -0.054294561308757844,
42
  "bias": "BEARISH",
43
  "label": "1H MOM"
44
  },
45
  "h1": {
46
+ "histogram": -0.034074851718808113,
47
  "status": "BEARISH_MOM",
48
+ "close": 57.779998779296875,
49
  "label": "15m Entry",
50
+ "ema_200": 57.46808941540025,
51
+ "rsi": 31.706953981279895
52
  },
53
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
54
  "signal": null,
55
  "category": "Intraday IndianMarket",
56
+ "timestamp": "2025-12-23T21:42:38.031039"
57
  },
58
  {
59
  "instrument": "MCX Natural Gas",
60
  "flag": "\ud83c\uddee\ud83c\uddf3\ud83d\udd25",
61
+ "ltp": 331.46294598852546,
62
  "daily": {
63
  "macd_line": -0.0695408324403588,
64
  "bias": "BEARISH",
65
  "label": "4H Trend"
66
  },
67
  "h4": {
68
+ "histogram": -0.017432680395752492,
69
  "bias": "NEUTRAL",
70
  "label": "1H MOM"
71
  },
72
  "h1": {
73
+ "histogram": 0.011469804116333422,
74
  "status": "BULLISH_MOM",
75
+ "close": 3.7079999446868896,
76
  "label": "15m Entry",
77
+ "ema_200": 3.9008575488002326,
78
+ "rsi": 59.38864856141885
79
  },
80
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
81
  "signal": null,
82
  "category": "Intraday IndianMarket",
83
+ "timestamp": "2025-12-23T21:42:38.228290"
84
  },
85
  {
86
  "instrument": "MCX Copper",
87
  "flag": "\ud83c\uddee\ud83c\uddf3\ud83e\uddf1",
88
+ "ltp": 1126.142472845841,
89
  "daily": {
90
  "macd_line": 0.030947624194040735,
91
  "bias": "BULLISH",
92
  "label": "4H Trend"
93
  },
94
  "h4": {
95
+ "histogram": 0.004394504793144804,
96
  "bias": "NEUTRAL",
97
  "label": "1H MOM"
98
  },
99
  "h1": {
100
+ "histogram": -0.005922191269097014,
101
  "status": "BEARISH_MOM",
102
+ "close": 5.559999942779541,
103
  "label": "15m Entry",
104
+ "ema_200": 5.5132030537206,
105
+ "rsi": 47.57578122064914
106
  },
107
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
108
  "signal": null,
109
  "category": "Intraday IndianMarket",
110
+ "timestamp": "2025-12-23T21:42:38.106154"
111
  },
112
  {
113
  "instrument": "Gold",
114
  "flag": "\ud83e\udd47",
115
+ "ltp": 4484.7001953125,
116
  "daily": {
117
  "macd_line": 77.15796588483772,
118
  "bias": "BULLISH",
 
124
  "label": "4H MOM"
125
  },
126
  "h1": {
127
+ "histogram": -6.988752562104931,
128
  "status": "BEARISH_MOM",
129
+ "close": 4485.7998046875,
130
  "label": "1H Entry",
131
+ "ema_200": 4373.062368897171,
132
+ "rsi": 35.91872864259541
133
  },
134
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
135
  "signal": null,
136
  "category": "Metals/Energy",
137
+ "timestamp": "2025-12-23T21:42:38.160883"
138
  },
139
  {
140
  "instrument": "Silver",
141
  "flag": "\ud83e\udd48",
142
+ "ltp": 69.84500122070312,
143
  "daily": {
144
  "macd_line": 4.001420702327515,
145
  "bias": "BULLISH",
 
151
  "label": "4H MOM"
152
  },
153
  "h1": {
154
+ "histogram": -0.023585064677438483,
155
+ "status": "BEARISH_MOM",
156
+ "close": 69.81999969482422,
157
  "label": "1H Entry",
158
+ "ema_200": 65.50631724741767,
159
+ "rsi": 55.34824666784335
160
  },
161
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
162
  "signal": null,
163
  "category": "Metals/Energy",
164
+ "timestamp": "2025-12-23T21:42:38.173856"
165
  },
166
  {
167
  "instrument": "Brent Crude Oil",
168
  "flag": "\ud83c\uddec\ud83c\udde7\ud83d\udee2\ufe0f",
169
+ "ltp": 61.34000015258789,
170
  "daily": {
171
  "macd_line": -0.8561372539654784,
172
  "bias": "BEARISH",
 
178
  "label": "4H MOM"
179
  },
180
  "h1": {
181
+ "histogram": -0.10103993313232074,
182
  "status": "BEARISH_MOM",
183
+ "close": 61.31999969482422,
184
  "label": "1H Entry",
185
+ "ema_200": 61.01604434637597,
186
+ "rsi": 27.58634297259755
187
  },
188
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
189
  "signal": null,
190
  "category": "Metals/Energy",
191
+ "timestamp": "2025-12-23T21:42:38.269238"
192
  },
193
  {
194
  "instrument": "Natural Gas",
195
  "flag": "\ud83d\udd25",
196
+ "ltp": 3.703000068664551,
197
  "daily": {
198
  "macd_line": -0.09617675735424847,
199
  "bias": "NEUTRAL",
 
205
  "label": "4H MOM"
206
  },
207
  "h1": {
208
+ "histogram": -0.017432680395752492,
209
  "status": "BEARISH_MOM",
210
+ "close": 3.7079999446868896,
211
  "label": "1H Entry",
212
+ "ema_200": 4.103806962533162,
213
+ "rsi": 28.87624181941446
214
  },
215
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
216
  "signal": null,
217
  "category": "Metals/Energy",
218
+ "timestamp": "2025-12-23T21:42:38.170742"
219
  },
220
  {
221
  "instrument": "Platinum",
222
  "flag": "\ud83d\udc8d",
223
+ "ltp": 2262.89990234375,
224
  "daily": {
225
  "macd_line": 108.24651117953658,
226
  "bias": "BULLISH",
 
232
  "label": "4H MOM"
233
  },
234
  "h1": {
235
+ "histogram": 1.750842661089564,
236
  "status": "BULLISH_MOM",
237
+ "close": 2266.5,
238
  "label": "1H Entry",
239
+ "ema_200": 1948.2257858379812,
240
+ "rsi": 74.33931648424445
241
  },
242
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
243
  "signal": null,
244
  "category": "Metals/Energy",
245
+ "timestamp": "2025-12-23T21:42:38.097224"
246
  },
247
  {
248
  "instrument": "Palladium",
249
  "flag": "\ud83d\udc8e",
250
+ "ltp": 1964.5,
251
  "daily": {
252
  "macd_line": 80.96527600943136,
253
  "bias": "BULLISH",
 
259
  "label": "4H MOM"
260
  },
261
  "h1": {
262
+ "histogram": 5.683063987615739,
263
  "status": "BULLISH_MOM",
264
+ "close": 1966.0,
265
  "label": "1H Entry",
266
+ "ema_200": 1727.9843803264523,
267
+ "rsi": 67.8048780487805
268
  },
269
  "overall_status": "LOOKING_FOR_BUY",
270
  "signal": null,
271
  "category": "Metals/Energy",
272
+ "timestamp": "2025-12-23T21:42:37.915099"
273
  },
274
  {
275
  "instrument": "EUR/USD",
276
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\uddfa\ud83c\uddf8",
277
+ "ltp": 1.177994966506958,
278
  "daily": {
279
  "macd_line": 0.003774981869139271,
280
  "bias": "BULLISH",
 
296
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
297
  "signal": null,
298
  "category": "Forex",
299
+ "timestamp": "2025-12-23T21:42:38.539746"
300
  },
301
  {
302
  "instrument": "GBP/USD",
303
  "flag": "\ud83c\uddec\ud83c\udde7\ud83c\uddfa\ud83c\uddf8",
304
+ "ltp": 1.3481086492538452,
305
  "daily": {
306
  "macd_line": 0.004743802284778553,
307
  "bias": "BULLISH",
 
323
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
324
  "signal": null,
325
  "category": "Forex",
326
+ "timestamp": "2025-12-23T21:42:38.919344"
327
  },
328
  {
329
  "instrument": "USD/JPY",
330
  "flag": "\ud83c\uddfa\ud83c\uddf8\ud83c\uddef\ud83c\uddf5",
331
+ "ltp": 156.36000061035156,
332
  "daily": {
333
  "macd_line": 0.42242833584080586,
334
  "bias": "BULLISH",
 
350
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
351
  "signal": null,
352
  "category": "Forex",
353
+ "timestamp": "2025-12-23T21:42:39.270756"
354
  },
355
  {
356
  "instrument": "AUD/USD",
357
  "flag": "\ud83c\udde6\ud83c\uddfa\ud83c\uddfa\ud83c\uddf8",
358
+ "ltp": 0.669523298740387,
359
  "daily": {
360
  "macd_line": 0.0025585195388049264,
361
  "bias": "BULLISH",
 
377
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
378
  "signal": null,
379
  "category": "Forex",
380
+ "timestamp": "2025-12-23T21:42:39.229065"
381
  },
382
  {
383
  "instrument": "USD/CHF",
384
  "flag": "\ud83c\uddfa\ud83c\uddf8\ud83c\udde8\ud83c\udded",
385
+ "ltp": 0.7892699837684631,
386
  "daily": {
387
  "macd_line": -0.001923955315835113,
388
  "bias": "BEARISH",
 
404
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
405
  "signal": null,
406
  "category": "Forex",
407
+ "timestamp": "2025-12-23T21:42:39.066980"
408
  },
409
  {
410
  "instrument": "NZD/USD",
411
  "flag": "\ud83c\uddf3\ud83c\uddff\ud83c\uddfa\ud83c\uddf8",
412
+ "ltp": 0.5831924080848694,
413
  "daily": {
414
  "macd_line": 0.0021001203523307588,
415
  "bias": "NEUTRAL",
 
431
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
432
  "signal": null,
433
  "category": "Forex",
434
+ "timestamp": "2025-12-23T21:42:39.019515"
435
  },
436
  {
437
  "instrument": "USD/CAD",
438
  "flag": "\ud83c\uddfa\ud83c\uddf8\ud83c\udde8\ud83c\udde6",
439
+ "ltp": 1.3711299896240234,
440
  "daily": {
441
  "macd_line": -0.006545036458240894,
442
  "bias": "BEARISH",
 
473
  "category": "Forex"
474
  },
475
  "category": "Forex",
476
+ "timestamp": "2025-12-23T21:42:39.214208"
477
  },
478
  {
479
  "instrument": "EUR/GBP",
480
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\uddec\ud83c\udde7",
481
+ "ltp": 0.8735399842262268,
482
  "daily": {
483
  "macd_line": -0.0003033810051809027,
484
  "bias": "NEUTRAL",
 
500
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
501
  "signal": null,
502
  "category": "Forex",
503
+ "timestamp": "2025-12-23T21:42:39.198349"
504
  },
505
  {
506
  "instrument": "EUR/JPY",
507
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\uddef\ud83c\uddf5",
508
+ "ltp": 184.0800018310547,
509
  "daily": {
510
  "macd_line": 1.0789263423318687,
511
  "bias": "BULLISH",
 
527
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
528
  "signal": null,
529
  "category": "Forex",
530
+ "timestamp": "2025-12-23T21:42:39.194371"
531
  },
532
  {
533
  "instrument": "GBP/JPY",
534
  "flag": "\ud83c\uddec\ud83c\udde7\ud83c\uddef\ud83c\uddf5",
535
+ "ltp": 210.718994140625,
536
  "daily": {
537
  "macd_line": 1.3001802677899548,
538
  "bias": "BULLISH",
 
554
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
555
  "signal": null,
556
  "category": "Forex",
557
+ "timestamp": "2025-12-23T21:42:39.165716"
558
  },
559
  {
560
  "instrument": "AUD/JPY",
561
  "flag": "\ud83c\udde6\ud83c\uddfa\ud83c\uddef\ud83c\uddf5",
562
+ "ltp": 104.61799621582031,
563
  "daily": {
564
  "macd_line": 0.6754105877940759,
565
  "bias": "BULLISH",
 
581
  "overall_status": "LOOKING_FOR_BUY",
582
  "signal": null,
583
  "category": "Forex",
584
+ "timestamp": "2025-12-23T21:42:39.269851"
585
  },
586
  {
587
  "instrument": "NZD/JPY",
 
608
  "overall_status": "LOOKING_FOR_BUY",
609
  "signal": null,
610
  "category": "Forex",
611
+ "timestamp": "2025-12-23T21:42:39.685539"
612
  },
613
  {
614
  "instrument": "GBP/CHF",
615
  "flag": "\ud83c\uddec\ud83c\udde7\ud83c\udde8\ud83c\udded",
616
+ "ltp": 1.0639599561691284,
617
  "daily": {
618
  "macd_line": 0.0012057973629191476,
619
  "bias": "NEUTRAL",
 
635
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
636
  "signal": null,
637
  "category": "Forex",
638
+ "timestamp": "2025-12-23T21:42:39.896843"
639
  },
640
  {
641
  "instrument": "EUR/CAD",
642
  "flag": "\ud83c\uddea\ud83c\uddfa\ud83c\udde8\ud83c\udde6",
643
+ "ltp": 1.614259958267212,
644
  "daily": {
645
  "macd_line": -0.0023671145816888117,
646
  "bias": "NEUTRAL",
 
662
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
663
  "signal": null,
664
  "category": "Forex",
665
+ "timestamp": "2025-12-23T21:42:39.894468"
666
  },
667
  {
668
  "instrument": "AUD/CAD",
669
  "flag": "\ud83c\udde6\ud83c\uddfa\ud83c\udde8\ud83c\udde6",
670
+ "ltp": 0.9174299836158752,
671
  "daily": {
672
  "macd_line": -0.0007331821637314162,
673
  "bias": "NEUTRAL",
 
689
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
690
  "signal": null,
691
  "category": "Forex",
692
+ "timestamp": "2025-12-23T21:42:40.082695"
693
  },
694
  {
695
  "instrument": "CAD/JPY",
696
  "flag": "\ud83c\udde8\ud83c\udde6\ud83c\uddef\ud83c\uddf5",
697
+ "ltp": 114.01599884033203,
698
  "daily": {
699
  "macd_line": 0.8281172260950456,
700
  "bias": "BULLISH",
 
716
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
717
  "signal": null,
718
  "category": "Forex",
719
+ "timestamp": "2025-12-23T21:42:40.081181"
720
  },
721
  {
722
  "instrument": "CHF/JPY",
723
  "flag": "\ud83c\udde8\ud83c\udded\ud83c\uddef\ud83c\uddf5",
724
+ "ltp": 198.0399932861328,
725
  "daily": {
726
  "macd_line": 0.9976381001133916,
727
  "bias": "BULLISH",
 
743
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
744
  "signal": null,
745
  "category": "Forex",
746
+ "timestamp": "2025-12-23T21:42:40.029650"
747
  },
748
  {
749
  "instrument": "Bitcoin",
750
  "flag": "\u20bf",
751
+ "ltp": 87741.75,
752
  "daily": {
753
+ "macd_line": 8.455420762853464,
754
  "bias": "BULLISH",
755
  "label": "4H Trend"
756
  },
757
  "h4": {
758
+ "histogram": -47.36646738023137,
759
  "bias": "BEARISH",
760
  "label": "1H MOM"
761
  },
762
  "h1": {
763
+ "histogram": -26.992713376302163,
764
  "status": "BEARISH_MOM",
765
+ "close": 87426.453125,
766
  "label": "15m Entry",
767
+ "ema_200": 88251.8412322223,
768
+ "rsi": 46.018761190544154
769
  },
770
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
771
  "signal": null,
772
  "category": "Crypto Scalping",
773
+ "timestamp": "2025-12-23T21:42:40.091265"
774
  },
775
  {
776
  "instrument": "Ethereum",
777
  "flag": "\u039e",
778
+ "ltp": 2940.1533203125,
779
  "daily": {
780
+ "macd_line": 1.4151595692401315,
781
  "bias": "BULLISH",
782
  "label": "4H Trend"
783
  },
784
  "h4": {
785
+ "histogram": -5.72607522745286,
786
  "bias": "BEARISH",
787
  "label": "1H MOM"
788
  },
789
  "h1": {
790
+ "histogram": -2.432376389565185,
791
  "status": "BEARISH_MOM",
792
+ "close": 2926.46875,
793
  "label": "15m Entry",
794
+ "ema_200": 2986.666874636311,
795
+ "rsi": 33.116395835891566
796
  },
797
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
798
  "signal": null,
799
  "category": "Crypto Scalping",
800
+ "timestamp": "2025-12-23T21:42:40.259464"
801
  },
802
  {
803
  "instrument": "Solana",
804
  "flag": "\u2600\ufe0f",
805
+ "ltp": 123.57405853271484,
806
  "daily": {
807
+ "macd_line": -0.35852502061204916,
808
  "bias": "BEARISH",
809
  "label": "4H Trend"
810
  },
811
  "h4": {
812
+ "histogram": -0.20877149135221973,
813
+ "bias": "NEUTRAL",
814
  "label": "1H MOM"
815
  },
816
  "h1": {
817
+ "histogram": -0.047940999294118936,
818
  "status": "BEARISH_MOM",
819
+ "close": 123.2532730102539,
820
  "label": "15m Entry",
821
+ "ema_200": 125.26660518270978,
822
+ "rsi": 36.570026918254435
823
  },
824
+ "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
825
  "signal": null,
826
  "category": "Crypto Scalping",
827
+ "timestamp": "2025-12-23T21:42:40.166464"
828
  },
829
  {
830
  "instrument": "Ripple",
831
  "flag": "\ud83d\udca7",
832
+ "ltp": 1.8854647874832153,
833
  "daily": {
834
+ "macd_line": -0.004308925370050787,
835
  "bias": "BEARISH",
836
  "label": "4H Trend"
837
  },
838
  "h4": {
839
+ "histogram": -0.00044862758502683606,
840
+ "bias": "NEUTRAL",
841
  "label": "1H MOM"
842
  },
843
  "h1": {
844
+ "histogram": -0.0011243452650196778,
845
  "status": "BEARISH_MOM",
846
+ "close": 1.881150245666504,
847
  "label": "15m Entry",
848
+ "ema_200": 1.904101388326434,
849
+ "rsi": 37.19442673005198
850
  },
851
+ "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
852
  "signal": null,
853
  "category": "Crypto Scalping",
854
+ "timestamp": "2025-12-23T21:42:40.484755"
855
  },
856
  {
857
  "instrument": "Cardano",
858
  "flag": "\u20b3",
859
+ "ltp": 0.3627503216266632,
860
  "daily": {
861
+ "macd_line": -0.0024240905608229335,
862
  "bias": "BEARISH",
863
  "label": "4H Trend"
864
  },
865
  "h4": {
866
+ "histogram": -0.0008798834051840297,
867
+ "bias": "NEUTRAL",
868
  "label": "1H MOM"
869
  },
870
  "h1": {
871
+ "histogram": -0.00020390398263164886,
872
  "status": "BEARISH_MOM",
873
+ "close": 0.3606419265270233,
874
  "label": "15m Entry",
875
+ "ema_200": 0.3679813256112489,
876
+ "rsi": 38.425683569712504
877
  },
878
+ "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
879
  "signal": null,
880
  "category": "Crypto Scalping",
881
+ "timestamp": "2025-12-23T21:42:40.634910"
882
  },
883
  {
884
  "instrument": "Dogecoin",
885
  "flag": "\ud83d\udc15",
886
+ "ltp": 0.1297360509634018,
887
  "daily": {
888
+ "macd_line": 0.00014630659293402015,
889
  "bias": "NEUTRAL",
890
  "label": "4H Trend"
891
  },
892
  "h4": {
893
+ "histogram": -0.00027703260217629047,
894
+ "bias": "NEUTRAL",
895
  "label": "1H MOM"
896
  },
897
  "h1": {
898
+ "histogram": -6.671537922071577e-05,
899
  "status": "BEARISH_MOM",
900
+ "close": 0.1293407529592514,
901
  "label": "15m Entry",
902
+ "ema_200": 0.13135861321520442,
903
+ "rsi": 40.68865248026339
904
  },
905
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
906
  "signal": null,
907
  "category": "Crypto Scalping",
908
+ "timestamp": "2025-12-23T21:42:40.781233"
909
  },
910
  {
911
  "instrument": "Polkadot",
912
  "flag": "\u26ab",
913
+ "ltp": 1.7570236921310425,
914
  "daily": {
915
+ "macd_line": -0.02162791061984448,
916
  "bias": "BEARISH",
917
  "label": "4H Trend"
918
  },
919
  "h4": {
920
+ "histogram": -0.0019349283793479617,
921
+ "bias": "NEUTRAL",
922
  "label": "1H MOM"
923
  },
924
  "h1": {
925
+ "histogram": -0.0009609137374965715,
926
  "status": "BEARISH_MOM",
927
+ "close": 1.7463247776031494,
928
  "label": "15m Entry",
929
+ "ema_200": 1.788032061940986,
930
+ "rsi": 38.42777658211994
931
  },
932
+ "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
933
  "signal": null,
934
  "category": "Crypto Scalping",
935
+ "timestamp": "2025-12-23T21:42:40.651086"
936
  },
937
  {
938
  "instrument": "Nifty 50",
 
959
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
960
  "signal": null,
961
  "category": "Intraday IndianMarket",
962
+ "timestamp": "2025-12-23T21:42:40.468748"
963
  },
964
  {
965
  "instrument": "Bank Nifty",
 
986
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
987
  "signal": null,
988
  "category": "Intraday IndianMarket",
989
+ "timestamp": "2025-12-23T21:42:40.605587"
990
  },
991
  {
992
  "instrument": "Sensex",
 
1013
  "overall_status": "CONFLICT (Trend/MOM/Filter Mismatch)",
1014
  "signal": null,
1015
  "category": "Intraday IndianMarket",
1016
+ "timestamp": "2025-12-23T21:42:40.616279"
1017
  }
1018
  ]
1019
  }
forex_macd_strategy.py CHANGED
@@ -127,16 +127,23 @@ load_active_signals()
127
 
128
  # ================= DATA & INDICATORS =================
129
  def fetch_data(symbol: str, interval: str, period: str) -> pd.DataFrame:
130
- """Fetch data from Yahoo Finance."""
131
- try:
132
- ticker = yf.Ticker(symbol)
133
- df = ticker.history(period=period, interval=interval)
134
- if df.empty:
135
- return pd.DataFrame()
136
- return df
137
- except Exception as e:
138
- print(f" ❌ Error fetching {symbol} ({interval}): {e}")
139
- return pd.DataFrame()
 
 
 
 
 
 
 
140
 
141
  def calculate_macd(df: pd.DataFrame) -> pd.DataFrame:
142
  fast = CONFIG['macd']['fast']
@@ -734,6 +741,7 @@ def main():
734
  # Save to JSON
735
  output = {
736
  "last_updated": datetime.now().isoformat(),
 
737
  "data": results
738
  }
739
 
 
127
 
128
  # ================= DATA & INDICATORS =================
129
  def fetch_data(symbol: str, interval: str, period: str) -> pd.DataFrame:
130
+ """Fetch data from Yahoo Finance with retries."""
131
+ for attempt in range(3):
132
+ try:
133
+ # Use a custom session with a user-agent to avoid rate limits
134
+ import requests
135
+ session = requests.Session()
136
+ session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'})
137
+
138
+ ticker = yf.Ticker(symbol, session=session)
139
+ df = ticker.history(period=period, interval=interval)
140
+ if not df.empty:
141
+ return df
142
+ print(f" ⚠️ Empty data for {symbol} ({interval}) on attempt {attempt+1}")
143
+ except Exception as e:
144
+ print(f" ❌ Error fetching {symbol} ({interval}) on attempt {attempt+1}: {e}")
145
+ time.sleep(2) # Wait before retry
146
+ return pd.DataFrame()
147
 
148
  def calculate_macd(df: pd.DataFrame) -> pd.DataFrame:
149
  fast = CONFIG['macd']['fast']
 
741
  # Save to JSON
742
  output = {
743
  "last_updated": datetime.now().isoformat(),
744
+ "backend_heartbeat": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
745
  "data": results
746
  }
747
 
start.sh CHANGED
@@ -1,5 +1,11 @@
1
  #!/bin/bash
2
- # Run strategy in background
3
- ENABLE_SCREENSHOTS=False python3 forex_macd_strategy.py &
 
 
 
 
 
 
4
  # Run server in foreground
5
  python3 serve_forex_macd.py
 
1
  #!/bin/bash
2
+ # Run strategy in background with auto-restart
3
+ (while true; do
4
+ echo "📈 Starting Forex MACD Strategy..."
5
+ ENABLE_SCREENSHOTS=False python3 forex_macd_strategy.py
6
+ echo "⚠️ Strategy script crashed. Restarting in 10s..."
7
+ sleep 10
8
+ done) &
9
+
10
  # Run server in foreground
11
  python3 serve_forex_macd.py