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);
Attached File(s)
-
TrendLine Alert-mod peter.mq4 2.4 KB · Views: 24
-
TrendLine Alert-mod peter one alert per bar try-1.mq4 2.6 KB · Views: 20
-
TrendLine Alert-mod peter one alert per bar try-2.mq4 2.6 KB · Views: 23
-
TrendLine Alert-mod peter one alert per bar try-3.mq4 2.7 KB · Views: 22
Last edited by a moderator: