Alert freezes my mt4

thread: Alert freezes my mt4

  1. #1

    Alert freezes my mt4

    Got a problem with the alarms. . , can someone help me and create the alerts not to freeze the mt4, thanks!

    Inserted Code #property indior_chart_window #property indior_buffers two #property indior_color1 White #property indior_width1 1 #property indior_color2 White #property indior_width2 1 int barsLeftOfCurrent =25; int barsRightOfCurrent = 25; int Arrowup=110; int Arrowdown=110; bool Five_digit_broker=true; int distance = 10; int Countbars=2500; double b1#91;#93;; double b2#91;#93;; int init() SetIndexStyle(0,DRAW_ARROW); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1,Arrowup); SetIndexArrow(0,Arrowdown); SetIndexBuffer(0,b1); SetIndexBuffer(1,b2); return(0); int start() int k,I,j,limit,hhb,llb,limit2,Distancefin; int counted_bars = IndiorCounted(); if (counted_bars lt; 0) return (-1); if (counted_barsgt; 0) counted_bars--; if (igt; limit2) limit2= I; if (limit2 lt; Countbars - 1) restrict = Countbars - 1; for (I=limitation;igt;=0;I--) b1#91;I#93;=0; b2#91;I#93;=0; if (Five_digit_broker==true) Distancefin=distance*0.1; else Distancefin=distance; for (I=limitation;igt;=1;I--) hhb = iHighest(0,0,MODE_CLOSE,barsLeftOfCurrent 0 barsRightOfCurrent,I - barsRightOfCurrent); llb = iLowest(0,0,MODE_CLOSE,barsLeftOfCurrent 0 barsRightOfCurrent,I - barsRightOfCurrent); if (I==hhb) b1#91;I#93;=High#91;hhb#93; Distancefin*Stage; //PlaySound(news.wav); Alert(#91; Symbol() #93; #91;M Period() #93; #PUT); if (Id ==llb) b2#91;I#93;=Low#91;llb#93;-Distancefin*Stage; //PlaySound(news.wav); Alert(#91; Symbol() #93; #91;M Period() #93; #CALL); if (igt; limit2) limit2= I; return(0);

  2. #2
    pls. Try, see attached
    Since I don't know the name of the indior that you should rename the files and then alter the AlertIndior to the first name...
    https://www.cliqforex.com/attachment...0605334925.mq4
    https://www.cliqforex.com/attachment...2792376727.ex4

  •