Kaynağa Gözat

Limit Stop check added

Huzaifa-MQLDev 4 ay önce
ebeveyn
işleme
d965407162
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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)
449 449
    if(ArraySize(result) >= 1)
450 450
      {
451 451
       StringSplit(result[0], ' ', lineOne);
452
-      if(StringFind(result[0], "now", 0) != -1)
452
+      if(StringFind(result[0], "limit", 0) == -1 && StringFind(result[0], "stop", 0) == -1)
453 453
          if(((StringFind(result[0], "buy", 0) != -1) || (StringFind(result[0], "sell", 0) != -1)))
454 454
            {
455 455
             Print(" ------------------------------- Active Message ---------------------------------- ");
@@ -556,7 +556,7 @@ void pendingMessage(string &result[], string message, int message_id,int & tickt
556 556
    if(ArraySize(result) >= 1)
557 557
      {
558 558
       StringSplit(result[0], ' ', lineOne);
559
-      if(StringFind(result[0], "limit", 0) != -1)
559
+      if(StringFind(result[0], "limit", 0) != -1 || StringFind(result[0], "stop", 0) != -1)
560 560
          if(((StringFind(result[0], "buy", 0) != -1) || (StringFind(result[0], "sell", 0) != -1)))
561 561
            {
562 562
             Print(" ------------------------------- Pending Message ---------------------------------- ");