naik3d: Maybe there is a hack for this?
Don't use them. Write/find an indicator that places an Hline on the chart and issues an alert/sound when price crosses. Human can move the line.
Yes i have searched for something like that.
But my problem is that i really need the sms notification to my iphone mt4 app.
Do you know a specific alert indicator with horizontal lines that does support the notification option
in order to get the alarm on the iphone?
regards
naik
naik3d:
The notification is a simple addition, 1 or 2 lines of code.
Yes i have searched for something like that.
But my problem is that i really need the sms notification to my iphone mt4 app.
Do you know a specific alert indicator with horizontal lines that does support the notification option
in order to get the alarm on the iphone?
naik3d:
Well find one that Alerts and I'll tell you how to add the Notification option.
Hey RaptorUK
yes, but the prob is that i'm not a coder - and i have not found any alert indicator with that additional function.
//+------------------------------------------------------------------+ //| Hline Alarm.mq4 | //| WDholic | //| | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ #property copyright "WDholic" #property link "" #property indicator_chart_window string n; bool notified=0; int init() { n=WindowExpertName(); notified=0; start(); } int start() { if (ObjectFind(n+"1")==-1){line(1,iHigh(Symbol(),PERIOD_D1,0),RoyalBlue);} if (ObjectFind(n+"2")==-1){line(2,iLow(Symbol(),PERIOD_D1,0),Tomato);} double a1= ObjectGet(n+"1",1); double a2= ObjectGet(n+"2",1); if (Bid>a1){PlaySound("expert.wav "); if (notified==0){ SendNotification("Bid pass UP" +DoubleToStr(a1,Digits));notified=1;} } if (Bid<a2){PlaySound("tick.wav"); if (notified==0){SendNotification("Bid pass DOWN" +DoubleToStr(a2,Digits));notified=1;} } return(0); } void line(int x,double hg,color line_color) {ObjectDelete(n+x); ObjectCreate(n+x, OBJ_HLINE, 0, 0,hg); ObjectSet(n+x, OBJPROP_WIDTH , 0); ObjectSet(n+x, OBJPROP_COLOR , line_color); ObjectSet(n+x, OBJPROP_STYLE , 4); ObjectSet(n+x, OBJPROP_BACK , 0); }


You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey guys,
is it possible to show the build in alarm via a horizontal line?
The alarms are all invisible..
regards
naik3d