Hi People, first post (adding Alerts to MT4

 

Hi Guys

Can anyone help me please I am learning to edit Indicators.

I have this Indicator that appears on screan when it finds a short or long I want to also have it give an audible alarm aswell

Now think that it is done in this part of the coding

int init() {

IndicatorBuffers(2);

SetIndexStyle(0, DRAW_ARROW);

SetIndexArrow(0, 234);

SetIndexStyle(1, DRAW_ARROW);

SetIndexArrow(1, 233);

SetIndexBuffer(0, g_ibuf_144);

SetIndexBuffer(1, g_ibuf_148);

Comment("X5v2.1");

return (0);

I have tried expeirimenting with differant thing but Im not winning. So if you can help that would be great

Regards

CharlieC

 
charlie c:
Hi GuysCan anyone help me please I am learning to edit Indicators. I have this Indicator that appears on screan when it finds a short or long I want to also have it give an audible alarm aswell Now think that it is done in this part of the coding int init() {IndicatorBuffers(2);SetIndexStyle(0, DRAW_ARROW);SetIndexArrow(0, 234);SetIndexStyle(1, DRAW_ARROW);SetIndexArrow(1, 233);SetIndexBuffer(0, g_ibuf_144);SetIndexBuffer(1, g_ibuf_148);Comment("X5v2.1");return (0);I have tried expeirimenting with differant thing but Im not winning. So if you can help that would be greatRegardsCharlieC

Mate try this one:

 

thank you and sorry for not getting back sooner

Reason: