dixitramjendra commited on
Commit
f0e4e80
Β·
1 Parent(s): 23d698f

Add Bitcoin, Ethereum, and Silver to dashboard

Browse files
forex_macd_dashboard.html CHANGED
@@ -241,8 +241,10 @@
241
  function formatPrice(price, instrument) {
242
  if (instrument.includes('JPY')) {
243
  return price.toFixed(3);
244
- } else if (instrument.includes('Oil') || instrument.includes('Gold')) {
245
  return price.toFixed(2);
 
 
246
  } else {
247
  return price.toFixed(5);
248
  }
 
241
  function formatPrice(price, instrument) {
242
  if (instrument.includes('JPY')) {
243
  return price.toFixed(3);
244
+ } else if (instrument.includes('Oil') || instrument.includes('Gold') || instrument.includes('Bitcoin') || instrument.includes('Ethereum')) {
245
  return price.toFixed(2);
246
+ } else if (instrument.includes('Silver')) {
247
+ return price.toFixed(3);
248
  } else {
249
  return price.toFixed(5);
250
  }
forex_macd_strategy.py CHANGED
@@ -35,7 +35,9 @@ CONFIG = {
35
  {"name": "USD/CAD", "symbol": "USDCAD=X", "pip_size": 0.0001, "flag": "πŸ‡ΊπŸ‡ΈπŸ‡¨πŸ‡¦"},
36
  {"name": "EUR/GBP", "symbol": "EURGBP=X", "pip_size": 0.0001, "flag": "πŸ‡ͺπŸ‡ΊπŸ‡¬πŸ‡§"},
37
  {"name": "EUR/JPY", "symbol": "EURJPY=X", "pip_size": 0.01, "flag": "πŸ‡ͺπŸ‡ΊπŸ‡―πŸ‡΅"},
38
- {"name": "GBP/JPY", "symbol": "GBPJPY=X", "pip_size": 0.01, "flag": "πŸ‡¬πŸ‡§πŸ‡―πŸ‡΅"}
 
 
39
  ],
40
  "macd": {
41
  "fast": 12,
 
35
  {"name": "USD/CAD", "symbol": "USDCAD=X", "pip_size": 0.0001, "flag": "πŸ‡ΊπŸ‡ΈπŸ‡¨πŸ‡¦"},
36
  {"name": "EUR/GBP", "symbol": "EURGBP=X", "pip_size": 0.0001, "flag": "πŸ‡ͺπŸ‡ΊπŸ‡¬πŸ‡§"},
37
  {"name": "EUR/JPY", "symbol": "EURJPY=X", "pip_size": 0.01, "flag": "πŸ‡ͺπŸ‡ΊπŸ‡―πŸ‡΅"},
38
+ {"name": "GBP/JPY", "symbol": "GBPJPY=X", "pip_size": 0.01, "flag": "πŸ‡¬πŸ‡§πŸ‡―πŸ‡΅"},
39
+ {"name": "Bitcoin", "symbol": "BTC-USD", "pip_size": 1.0, "flag": "β‚Ώ"},
40
+ {"name": "Ethereum", "symbol": "ETH-USD", "pip_size": 0.1, "flag": "Ξ"}
41
  ],
42
  "macd": {
43
  "fast": 12,