dixitramjendra commited on
Commit
5926a10
·
1 Parent(s): 35ed6a3

Automated deployment: Syncing latest signals and strategy

Browse files
forex_macd_dashboard.html CHANGED
@@ -1818,30 +1818,6 @@
1818
  document.addEventListener('DOMContentLoaded', () => updateThemeButton(isLight));
1819
  })();
1820
 
1821
- // ========== KEEP-ALIVE MECHANISM ==========
1822
- // Prevents Hugging Face free tier from sleeping during market hours
1823
- (function initKeepAlive() {
1824
- const PING_INTERVAL = 5 * 60 * 1000; // 5 minutes
1825
-
1826
- function pingServer() {
1827
- // Check if we're in market hours (roughly 4 AM - 11 PM IST / UTC+5:30)
1828
- const now = new Date();
1829
- const hour = now.getUTCHours();
1830
- const istHour = (hour + 5.5) % 24; // Convert to IST
1831
-
1832
- // Active during market hours (roughly 4 AM - 11:30 PM IST)
1833
- if (istHour >= 4 && istHour <= 23.5) {
1834
- fetch('/forex_macd_signals.json?keepalive=' + Date.now())
1835
- .then(() => console.log('🔄 Keep-alive ping sent'))
1836
- .catch(() => { }); // Silently ignore errors
1837
- }
1838
- }
1839
-
1840
- // Start keep-alive pings
1841
- setInterval(pingServer, PING_INTERVAL);
1842
- console.log('💓 Keep-alive mechanism initialized (5 min intervals)');
1843
- })();
1844
-
1845
  // ========== PWA SERVICE WORKER ==========
1846
  let deferredInstallPrompt = null;
1847
 
 
1818
  document.addEventListener('DOMContentLoaded', () => updateThemeButton(isLight));
1819
  })();
1820
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1821
  // ========== PWA SERVICE WORKER ==========
1822
  let deferredInstallPrompt = null;
1823
 
forex_macd_signals.json CHANGED
The diff for this file is too large to render. See raw diff
 
forex_macd_strategy.py CHANGED
@@ -207,7 +207,14 @@ CONFIG = {
207
 
208
  # NSE Futures (Auto-Rollover)
209
  {"name": "Nifty Future", "symbol": "DYNAMIC", "pip_size": 0.05, "flag": "🇮🇳📈", "category": "NSE Live", "base_symbol": "NIFTY"},
210
- {"name": "Bank Nifty Future", "symbol": "DYNAMIC", "pip_size": 0.05, "flag": "🇮🇳🏦", "category": "NSE Live", "base_symbol": "BANKNIFTY"}
 
 
 
 
 
 
 
211
  ],
212
  "macd": {
213
  "fast": 12,
 
207
 
208
  # NSE Futures (Auto-Rollover)
209
  {"name": "Nifty Future", "symbol": "DYNAMIC", "pip_size": 0.05, "flag": "🇮🇳📈", "category": "NSE Live", "base_symbol": "NIFTY"},
210
+ {"name": "Bank Nifty Future", "symbol": "DYNAMIC", "pip_size": 0.05, "flag": "🇮🇳🏦", "category": "NSE Live", "base_symbol": "BANKNIFTY"},
211
+
212
+ # Indian Indices (Spot)
213
+ {"name": "Nifty IT Index", "symbol": "^CNXIT", "pip_size": 0.05, "flag": "🇮🇳💻", "category": "Indian Indices & Commodities"},
214
+ {"name": "Bank Nifty Index", "symbol": "^NSEBANK", "pip_size": 0.05, "flag": "🇮🇳🏦", "category": "Indian Indices & Commodities"},
215
+
216
+ # Currency (Forex)
217
+ {"name": "USD/INR", "symbol": "USDINR=X", "pip_size": 0.0025, "flag": "🇺🇸🇮🇳", "category": "Forex"}
218
  ],
219
  "macd": {
220
  "fast": 12,
signal_history.json CHANGED
@@ -53,48 +53,101 @@
53
  "type": "SELL",
54
  "initial_sl": 0.1300852027322565
55
  },
56
- {
57
- "instrument": "USD/CAD",
58
- "event": "TP2_HIT",
59
- "price": 1.3650699853897095,
60
- "time": "2025-12-26 14:31:25",
61
- "category": "Forex",
62
- "entry_price": 1.3707000017166138,
63
- "entry_time": "2025-12-23T17:08:24.520113",
64
- "type": "SELL",
65
- "initial_sl": 1.3725224733352661
66
- },
67
  {
68
  "instrument": "Dogecoin",
69
  "event": "TP2_HIT",
70
- "price": 0.12223176658153534,
71
- "time": "2025-12-26 15:29:04",
72
  "category": "Crypto Scalping",
73
  "entry_price": 0.12845462560653687,
74
  "entry_time": "2025-12-24T09:34:09.369914",
75
  "type": "SELL",
76
  "initial_sl": 0.1300852027322565
77
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  {
79
  "instrument": "Ethereum",
80
  "event": "SL_HIT",
81
  "price": 2928.3076171875,
82
- "time": "2025-12-27 19:54:06",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  "category": "Crypto Scalping",
84
  "entry_price": 2918.78759765625,
85
  "entry_time": "2025-12-27T22:33:55.199016",
86
  "type": "SELL",
87
- "initial_sl": 2927.848467145647
 
 
 
 
 
88
  },
89
  {
90
  "instrument": "Cardano",
91
  "event": "TRAIL_SL_HIT",
92
- "price": 0.36153271794319153,
93
- "time": "2025-12-27 20:29:57",
94
  "category": "Crypto Scalping",
95
  "entry_price": 0.3599017262458801,
96
  "entry_time": "2025-12-24T09:34:08.363113",
97
  "type": "SELL",
98
- "initial_sl": 0.364803070468562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
100
  ]
 
53
  "type": "SELL",
54
  "initial_sl": 0.1300852027322565
55
  },
 
 
 
 
 
 
 
 
 
 
 
56
  {
57
  "instrument": "Dogecoin",
58
  "event": "TP2_HIT",
59
+ "price": 0.122893325984478,
60
+ "time": "2025-12-27 12:53:02",
61
  "category": "Crypto Scalping",
62
  "entry_price": 0.12845462560653687,
63
  "entry_time": "2025-12-24T09:34:09.369914",
64
  "type": "SELL",
65
  "initial_sl": 0.1300852027322565
66
  },
67
+ {
68
+ "instrument": "Ethereum",
69
+ "event": "ENTRY",
70
+ "price": 2918.78759765625,
71
+ "time": "2025-12-27 22:33:10",
72
+ "category": "Crypto Scalping",
73
+ "entry_price": 2918.78759765625,
74
+ "entry_time": "2025-12-27T22:33:10.460703",
75
+ "type": "SELL",
76
+ "initial_sl": 2927.848467145647
77
+ },
78
+ {
79
+ "instrument": "Ethereum",
80
+ "event": "ENTRY",
81
+ "price": 2918.78759765625,
82
+ "time": "2025-12-27 22:33:55",
83
+ "category": "Crypto Scalping",
84
+ "entry_price": 2918.78759765625,
85
+ "entry_time": "2025-12-27T22:33:55.199016",
86
+ "type": "SELL",
87
+ "initial_sl": 2927.848467145647
88
+ },
89
  {
90
  "instrument": "Ethereum",
91
  "event": "SL_HIT",
92
  "price": 2928.3076171875,
93
+ "time": "2025-12-28 01:24:27",
94
+ "category": "Crypto Scalping",
95
+ "entry_price": 2918.78759765625,
96
+ "entry_time": "2025-12-27T22:33:10.460703",
97
+ "type": "SELL",
98
+ "initial_sl": 2927.848467145647,
99
+ "pnl_points": -95.2,
100
+ "pnl_percent": -0.33,
101
+ "duration": "2h 51m",
102
+ "rr_planned": 1.5,
103
+ "rr_achieved": 1.05
104
+ },
105
+ {
106
+ "instrument": "Ethereum",
107
+ "event": "SL_HIT",
108
+ "price": 2928.3076171875,
109
+ "time": "2025-12-28 01:24:28",
110
  "category": "Crypto Scalping",
111
  "entry_price": 2918.78759765625,
112
  "entry_time": "2025-12-27T22:33:55.199016",
113
  "type": "SELL",
114
+ "initial_sl": 2927.848467145647,
115
+ "pnl_points": -95.2,
116
+ "pnl_percent": -0.33,
117
+ "duration": "2h 50m",
118
+ "rr_planned": 1.5,
119
+ "rr_achieved": 1.05
120
  },
121
  {
122
  "instrument": "Cardano",
123
  "event": "TRAIL_SL_HIT",
124
+ "price": 0.36271655559539795,
125
+ "time": "2025-12-28 01:39:16",
126
  "category": "Crypto Scalping",
127
  "entry_price": 0.3599017262458801,
128
  "entry_time": "2025-12-24T09:34:08.363113",
129
  "type": "SELL",
130
+ "initial_sl": 0.364803070468562,
131
+ "pnl_points": -28.1,
132
+ "pnl_percent": -0.78,
133
+ "duration": "88h 5m",
134
+ "rr_planned": 1.5,
135
+ "rr_achieved": 0.57
136
+ },
137
+ {
138
+ "instrument": "Cardano",
139
+ "event": "TRAIL_SL_HIT",
140
+ "price": 0.36271655559539795,
141
+ "time": "2025-12-28 01:39:44",
142
+ "category": "Crypto Scalping",
143
+ "entry_price": 0.3599017262458801,
144
+ "entry_time": "2025-12-24T09:34:08.363113",
145
+ "type": "SELL",
146
+ "initial_sl": 0.364803070468562,
147
+ "pnl_points": -28.1,
148
+ "pnl_percent": -0.78,
149
+ "duration": "88h 5m",
150
+ "rr_planned": 1.5,
151
+ "rr_achieved": 0.57
152
  }
153
  ]