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