Jelajahi Sumber

Limit Stop check added

Huzaifa-MQLDev 9 bulan lalu
induk
melakukan
d965407162
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. TEMPAT SAMPAH
      blTelegramToMT4.ex4
  2. 2 2
      blTelegramToMT4.mq4

TEMPAT SAMPAH
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)
      {
       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)))
            {
             Print(" ------------------------------- Active Message ---------------------------------- ");
@@ -556,7 +556,7 @@ void pendingMessage(string &result[], string message, int message_id,int & tickt
    if(ArraySize(result) >= 1)
      {
       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)))
            {
             Print(" ------------------------------- Pending Message ---------------------------------- ");