WajeehSaqib-MQL il y a 4 mois
Parent
commit
ee8f5f48b0
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. BIN
      blTelegramToMT4.ex4
  2. 4 3
      blTelegramToMT4.mq4

BIN
blTelegramToMT4.ex4


+ 4 - 3
blTelegramToMT4.mq4

@@ -5,7 +5,7 @@
5 5
 //+------------------------------------------------------------------+
6 6
 #property copyright "Copyright 2025, MQL Development"
7 7
 #property link      "https://www.mqldevelopment.com/"
8
-#property version   "1.00"
8
+#property version   "1.1"
9 9
 #property strict
10 10
 
11 11
 #define buy "buy"
@@ -25,7 +25,7 @@ msgDetails od[MaxOrders];
25 25
 
26 26
 input       string               Settings              = " ------------- General Settings ------------- ";   //_
27 27
 input       int                  magic_no              = 333;                                                // Magic no
28
-input       string               symbolMatch           = "GOLD:XAUUSD,BitCoin:BTCUSD";                       // Symbol Mapping (Telegram:MT5)
28
+input       string               symbolMatch           = "GOLD:XAUUSD,BitCoin:BTCUSD";                       // Symbol Mapping (Telegram:MT4)
29 29
 input       string               suffix                = "";                                                 // Account Suffix
30 30
 input       string               prefix                = "";                                                 // Account Prefix
31 31
 input       double               lotSize               = 0.1;                                                // Lot Size
@@ -34,7 +34,7 @@ input       double               lotSize               = 0.1;
34 34
 //| Expert initialization function                                   |
35 35
 //+------------------------------------------------------------------+
36 36
 // Global Variables
37
-string      url1      = "http://127.0.0.1";
37
+string      url1      = "http://myapp.local";///"http://127.0.0.1";
38 38
 string      header    = "Content-Type: application/json\r\nAccept: application/json\r\n";
39 39
 
40 40
 string symbolChart[];
@@ -46,6 +46,7 @@ int last_message_id = INT_MIN;
46 46
 int OnInit()
47 47
   {
48 48
 //--- create timer
49
+
49 50
    ushort u_sep = StringGetCharacter(",",0);
50 51
    StringSplit(symbolMatch,u_sep,symbolsListUserInput);
51 52
    ArrayResize(symbolChart,0);