Explorar el Código

Limit Stop check added

Huzaifa-MQLDev hace 9 meses
padre
commit
d965407162
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. BIN
      blTelegramToMT4.ex4
  2. 2 2
      blTelegramToMT4.mq4

BIN
blTelegramToMT4.ex4


+ 2 - 2
blTelegramToMT4.mq4

@@ -449,7 +449,7 @@ void message(string &result[], string message, int message_id,int & tickt)
    if(ArraySize(result) >= 1)
    if(ArraySize(result) >= 1)
      {
      {
       StringSplit(result[0], ' ', lineOne);
       StringSplit(result[0], ' ', lineOne);
-      if(StringFind(result[0], "now", 0) != -1)
+      if(StringFind(result[0], "limit", 0) == -1 && StringFind(result[0], "stop", 0) == -1)
          if(((StringFind(result[0], "buy", 0) != -1) || (StringFind(result[0], "sell", 0) != -1)))
          if(((StringFind(result[0], "buy", 0) != -1) || (StringFind(result[0], "sell", 0) != -1)))
            {
            {
             Print(" ------------------------------- Active Message ---------------------------------- ");
             Print(" ------------------------------- Active Message ---------------------------------- ");
@@ -556,7 +556,7 @@ void pendingMessage(string &result[], string message, int message_id,int & tickt
    if(ArraySize(result) >= 1)
    if(ArraySize(result) >= 1)
      {
      {
       StringSplit(result[0], ' ', lineOne);
       StringSplit(result[0], ' ', lineOne);
-      if(StringFind(result[0], "limit", 0) != -1)
+      if(StringFind(result[0], "limit", 0) != -1 || StringFind(result[0], "stop", 0) != -1)
          if(((StringFind(result[0], "buy", 0) != -1) || (StringFind(result[0], "sell", 0) != -1)))
          if(((StringFind(result[0], "buy", 0) != -1) || (StringFind(result[0], "sell", 0) != -1)))
            {
            {
             Print(" ------------------------------- Pending Message ---------------------------------- ");
             Print(" ------------------------------- Pending Message ---------------------------------- ");