extern int FastEMA = 15;//14 extern int SlowEMA = 34;//21 extern string ex = "0=SMA,1=EMA,2=SSMA,3=LWMA"; extern int mamode = MODE_LWMA; extern string ex2 = "0=Close,1=Open,2=High,3=Low"; extern string ex2a = "4=Median,5=Typical,6=Weighted"; extern int maprice = PRICE_CLOSE; extern int RSIPeriod = 8;//17 extern bool Alerts = True; extern bool Email = false; extern string MailSubject = "Sidus Alert"; // // // // // double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; double ExtMapBuffer4[]; double trend[]; datetime lastAlert; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ // // // // // int init() { IndicatorBuffers(5); SetIndexBuffer(0,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(2,ExtMapBuffer3); SetIndexStyle(2,DRAW_ARROW); SetIndexArrow(2,233); SetIndexBuffer(3,ExtMapBuffer4); SetIndexStyle(3,DRAW_ARROW); SetIndexArrow(3,234); SetIndexBuffer(4,trend); lastAlert=Time[0]; return(0); } int deinit() { return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ // // // // // int start() { int counted_bars=IndicatorCounted(); int limit; if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=MathMin(Bars-counted_bars,Bars-1); // // // // // for(int i=limit; i>=0; i--) { ExtMapBuffer1[i] = iMA(NULL,0,FastEMA,0,mamode,maprice,i); ExtMapBuffer2[i] = iMA(NULL,0,SlowEMA,0,mamode,maprice,i); ExtMapBuffer3[i] = EMPTY_VALUE; ExtMapBuffer4[i] = EMPTY_VALUE; trend[i] = trend[i+1]; // // // // // double dist = iATR(NULL,0,20,i); double rsi = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, i); double diff = (ExtMapBuffer1[i]-ExtMapBuffer2[i]); if (diff>0 && rsi>50) trend[i] = 1; if (diff<0 && rsi<50) trend[i] = -1; if (trend[i]!=trend[i+1]) if (trend[i]==1) ExtMapBuffer3[i] = ExtMapBuffer1[i]-dist; else ExtMapBuffer4[i] = ExtMapBuffer1[i]+dist; } // // // // // if (trend[1]!=trend[2]) { if(Time[0]>lastAlert) { lastAlert=Time[0]; string alert; if (trend[1] > 0) alert = "Buy "+Symbol()+", Entry point at "+DoubleToStr(Ask,Digits)+"!!"; else alert = "Sell "+Symbol()+", Entry point at "+DoubleToStr(Bid,Digits)+"!!"; if(Alerts) Alert(alert); if(Email) SendMail(MailSubject,alert); } } return(0); }
Thanks WHRoeder for responding. That is the indicator that could come the closest to what I am looking for. I would basically need to get an arrow and sound when the price touches the 5 EMA High or Low of the 4 hour and the Daily chart or within a selected number of pips. If this is possible without leaving the setup chart - 1Hour, that would be great.
I hope this draws a clear enough picture for someone out there to be able to assist. I am prepared to pay someone as you have indicated if it calls for that. Learning to code - that would be my next effort after I have this alert working because then I will be spending lesser time on the charts.
Regards
Thanks WHRoeder for responding. That is the indicator that could come the closest to what I am looking for. I would basically need to get an arrow and sound when the price touches the 5 EMA High or Low of the 4 hour and the Daily chart or within a selected number of pips. If this is possible without leaving the setup chart - 1Hour, that would be great.
I hope this draws a clear enough picture for someone out there to be able to assist. I am prepared to pay someone as you have indicated if it calls for that. Learning to code - that would be my next effort after I have this alert working because then I will be spending lesser time on the charts.
Regards
I can help you on this details we can discuss at Jobs
if you have time i can explain and show how to code it
but you are also free to choose for another developer there
Ok. How do I get hold of you there?
Ok. How do I get hold of you there?
If you have subscribed to to mql5.com you are able to open jobs there
read the rules for placing jobs so you understand how the procedure is working
this link New job will help you placing a job there
inside this link you find other links you read first before open your job
when you open the job i will subscribe to it and give more information if needed
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I need assistance from anyone who already have the indicator or who can modify/make something that works as follows, please:
I need an alert(sound, arrow) whenever the price touches:-
1) 5 EMA high or a 5 EMA low of the 4hour chart and the daily chart
2) 28 EMA close of the 4hour and daily chart
It would be great if this all happens on the H1 chart by using higher time frame ma's indicator. Once this works out I would like to receive e-mail alerts as well.
Regards
Andrae