WajeehSaqib-MQL 10 ماه پیش
والد
کامیت
ee8f5f48b0
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. BIN
      blTelegramToMT4.ex4
  2. 4 3
      blTelegramToMT4.mq4

BIN
blTelegramToMT4.ex4


+ 4 - 3
blTelegramToMT4.mq4

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