För att använda chatten måste du logga in.

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

Jun 26 2016 at 06:57
1 inlägg
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() {

int start() {
   int k,i,j,limit,hhb,llb;
   if (ShowBars >= Bars) ShowBars = Bars;
   for (i=0;i<ShowBars;i++) {
      hhb = iHighest(Symbol(),0,MODE_HIGH,dist,i-dist/2);
      llb = iLowest(Symbol(),0,MODE_LOW,dist,i-dist/2);

      if (i==hhb)
      if (i==llb)

Jun 27 2016 at 05:49
11 inlägg

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.

Logga in för att kommentera .