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