Please help me add sound alert to this IFish.mt4, thanks a lot!

 

hi,Guys

I just find this IFish.mt4, such a good one,so easy to use!

But I want to ask a favor: who can add sound alert to this Indicator,

thanks,Please!

Set up a sound alert when cross down 0.5 and cross up -0.5

I deeply appreciate your help!

Have a nice one!

Sincerely

Young

//+------------------------------------------------------------------+

//| IFish.mq4 |

//| Kalenzo |

//| bartlomiej.gorski@... |

//+------------------------------------------------------------------+

#property copyright "Kalenzo"

#property link "bartlomiej.gorski@..."

#property indicator_buffers 1

#property indicator_color1 DarkOrchid

#property indicator_level1 0.5

#property indicator_level2 -0.5

double value1[];

double value2[];

double ifish[];

double red[];

double green[];

#property indicator_separate_window

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

//---- indicators

IndicatorBuffers(3);

SetIndexBuffer(0,ifish);

SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);

SetIndexBuffer(1,value1);

SetIndexBuffer(2,value2);

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int limit;

int counted_bars=IndicatorCounted();

if(counted_bars<0) counted_bars=0;

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

//----

for(int i = 0 ;i <= limit ;i++) value1 =
0.1*(iRSI(Symbol(),0,5,PRICE_CLOSE,i)-50);
for(int j = 0 ;j <= limit ;j++) value2[j] =
iMAOnArray(value1,0,9,0,MODE_LWMA,j);
for(int f = 0 ;f <= limit ;f++) ifish[f] =
(MathExp(2*value2[f])-1)/(MathExp(2*value2[f])+1);


//----
return(0);
}
//+-----------------------------------------------

 

Ifish

Files:
IFish.mq4  2 kb
 

So sad!

 

Hello to All. I'm hew to forex. For naw jast hello!!!

 
hardguy:
Ifish

I've added alert signal.

Once line cross 0.5/-0.5 level - sound signal appears (with alert window)

if you want have signal when fish-line back to (-0.5;0.5) interval - simple - change code in if statements

_______________

Best regards

FiboLab Team

Files:
IFish2.mq4  3 kb
 

hi sir i want alert sound for this indicator when buy sell arrow appears and when exit cross appears thanks in advance

Files:
Reason: