Hi,Enivid, Thank for your great work ,I did like to share with everyone this TrendLine Alert,it origin Plays sound when Bid price crosses any trendline or horizontal line,i mod it to popup Alert as well , the only problem with it is it Alert every tick when it cross a line , i try to mod it to Alert only one each bar when it cross the line by add a time stamp function but it not work at all .please if you have time to look at it and point me to the right direction.Many many thank!! code i try to add
MQL4:
static datetime lastbar; datetime curbar = Time[0]; if(lastbar!=curbar) { lastbar=curbar; return (true); } else return(false);
Attachments
Last edited by a moderator: