can anyone help me to add sound alert to this indicator?

Jun 26, 2016 at 06:57
622 개의 뷰
1 Replies
Jun 25, 2016 부터 멤버   게시물1
Jun 26, 2016 at 06:57
I wanna Add Alert But i don't know how < can You Help Me ?
i wanna alert play sound : When The Green Arrow Shows Up The Alert Play Sound
When The Red Arrow Shows Up The Alert Play Sound
Thank You.


#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Red
#property indicator_width1 1
#property indicator_color2 Lime
#property indicator_width2 1
#property indicator_color3 Red
#property indicator_width3 1
#property indicator_color4 Lime
#property indicator_width4 1

extern int SignalGap = 4;
extern int ShowBars = 500;

int dist=24;

double b1[];
double b2[];
double b3[];
double b4[];

int init() {

SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(2,DRAW_ARROW,STYLE_SOLID,1);
SetIndexStyle(3,DRAW_ARROW,STYLE_SOLID,1);

SetIndexBuffer(0,b1);
SetIndexBuffer(1,b2);
SetIndexBuffer(2,b3);
SetIndexBuffer(3,b4);

SetIndexArrow(2,234);
SetIndexArrow(3,233);

return(0);
}

int start() {

int k,i,j,limit,hhb,llb;

if (ShowBars >= Bars) ShowBars = Bars;

for (i=0;i
Apr 06, 2014 부터 멤버   게시물11
Jun 27, 2016 at 05:49

Place these two functions in your code should work.

Alert(" Green Arrow Shows Up ");//Display alert

PlaySound("Bzrrr.wav"); // Sound accompaniment

Make sure you DO NOT call these functions every tick.
로그인 / 가입하기 to comment
You must be connected to Myfxbook in order to leave a comment
*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.