Coding assistance required for alert signal, do not know coding.

 

I've been trading an MA indicator with success on M5 chart, MaxMovingAverage. A web address in the code & non existent anymore nor am I to find further information only on Forex-std.



#property link "http://www.themovingaverage.com"
#property indicator_chart_window

#property indicator_buffers 4
#property indicator_color1 Red
#property indicator_color2 Blue
#property indicator_color3 Crimson
#property indicator_color4 DarkTurquoise

double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];

extern int firstback=50;
extern int secondback=14;
extern int countbars=200;
extern int power=2;

int init()
{
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_ARROW);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle(3,DRAW_ARROW);
SetIndexBuffer(3,ExtMapBuffer4);

SetIndexEmptyValue(2,0.0);
SetIndexEmptyValue(3,0.0);
SetIndexArrow(2,108);
SetIndexArrow(3,108);
return(0);
}
int deinit()
{
return(0);
}
int last = 0;

int start(){
if(last == Bars) return (0);
last = Bars;
int counted_bars=IndicatorCounted();
int pos;
int cnt;
int mult;
double first,second;
ArrayInitialize(ExtMapBuffer1,0);
ArrayInitialize(ExtMapBuffer2,0);
pos=countbars;
while (pos>-1){
mult=firstback+1;
first=0;
second=0;
for (cnt=pos;cnt<pos+firstback;cnt++){
mult--;
first=first+(Close[cnt]*MathPow(mult,power));
//Print (cnt);
}
mult=firstback+1;
for (cnt=pos;cnt<pos+firstback;cnt++){
mult--;
second=second+MathPow(mult,power);
}
ExtMapBuffer1[pos]=first/second;
pos--;
}

pos=countbars;
while (pos>-1){
mult=secondback+1;
first=0;
second=0;
for (cnt=pos;cnt<pos+secondback;cnt++){
mult--;
first=first+(Close[cnt]*MathPow(mult,power));
//Print (cnt);
}
mult=secondback+1;
for (cnt=pos;cnt<pos+secondback;cnt++){
mult--;
second=second+MathPow(mult,power);
}
ExtMapBuffer2[pos]=first/second;
if((ExtMapBuffer2[pos]-ExtMapBuffer1[pos])*(ExtMapBuffer2[pos+1]-ExtMapBuffer1[pos+1])<0){
if((ExtMapBuffer2[pos]-ExtMapBuffer1[pos])<0)
ExtMapBuffer3[pos] = ExtMapBuffer1[pos];
else
ExtMapBuffer4[pos] = ExtMapBuffer2[pos];
}
pos--;
}
return(0);
}


As you can see from the screen shot a turquoise dot appears when MA's cross to long while red dot appears go short this has the ability to stay in longer trends. For example last night I caught 45 pips on the EUR, entry 1.49366, tp 1.48915.


As we all know sitting in front of the PC all day waiting for signals can be trying on one's patient's. I do not want to change this indicator in anyway as I use market analysis, Fibonacci, trend lines, candle stick & chart pattern recognition on a plain black & white chart. What I would like assistance with is for someone willing to add a sound alert tone code on the MA cross in conjunction with an email alert (changeable for other users) as I have set up a yahoo! account to send a text message to my mobile phone whenever a message is received also with addition of an auto close (switchable, I imagine true/false tab?) for when I'm not able to sit in front of the PC. A semi EA. I believe in manual entry only.


This would be handy for mobile trading & benefit many of us with this simple but effective indicator without being a full EA with the addition of a manual/auto switch for exits.


Any assistance is much appreciated.

 

Hi,


did you already find a coder that helped you ?


Swen

 
Hi ForexBurdi, as of yet I haven't. Can you code?
 
369852:
Hi ForexBurdi, as of yet I haven't. Can you code?

Hi,


yes, of course.

Let us discuss details via PrivateMessage. I sent you my email-address...


Swen

Reason: