Dear,
I have downloaded this software and enabled the ring tone as below whenever get a sell or buy signal,but i faced a problem when i get any signal,which is i am receiving an alert notification for any signal each second and more than 80 times for each second and consequently my computer is freezing.
Thanks in advance for your support to solve this problem.
Salam,
Jamal Barakat
======================
//+------------------------------------------------------------------+
//| Filename changed to ForexOFFTrend. mq4 by CrazyChart |
//| SilverTrend .mq4 |
//| SilverTrend rewritten by CrazyChart |
//| http://viac.ru/ |
//+------------------------------------------------------------------+
#hak cipta properti "SilverTrend rewritten by CrazyChart"
#tautan properti "http://viac.ru/ "
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//---- parameter masukan
extern int CountBars = 400;
extern int SSP = 7;
extern double Kmin = 1.6;
extern double Kmax = 50.6;
extern bool gAlert = True; // Switch to allow alerts
//---- buffers
double ExtMapBuffer1[];
gandakan ExtMapBuffer2[];
//----
bool gSellAlertGiven = true; // Used to stop constant alerts
bool gBuyAlertGiven = true; // Used to stop constant alerts
//+------------------------------------------------------------------+
//| Fungsi inisialisasi indikator khusus |
//+------------------------------------------------------------------+
int init()
{
//---- indikator
SetIndexStyle(0, GAMBAR_LINE, 0, 2);
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexStyle(1, GAMBAR_LINE, 0, 2);
SetIndexBuffer(1, ExtMapBuffer2);
//----
jika(CountBars >= Bars)
CountBars = Bars;
SetIndexDrawBegin(0, Bar - CountBars + SSP);
SetIndexDrawBegin(1, Bar - CountBars + SSP);
//----
kembali(0);
}
//+------------------------------------------------------------------+
//| Fungsi deinisialisasi indikator pelanggan |
//+------------------------------------------------------------------+
int deinit()
{
kembali(0);
}
//+------------------------------------------------------------------+
//| Fungsi iterasi indikator khusus |
//+------------------------------------------------------------------+
int mulai()
{
int saya,
i2,
loopbegin,
counted_bars = IndicatorCounted();
double SsMax,
SsMin,
K,
val1,
val2,
smin,
smax,
harga;
jika(Bar <= SSP + 1)
kembali(0);
//---- initial zero
jika(count_bars < SSP + 1)
{
untuk(saya = 1; Saya <= SSP; saya++)
ExtMapBuffer1[CountBars-i] = 0. 0;
untuk(saya = 1; Saya <= SSP; saya++)
ExtMapBuffer2[CountBars-i] = 0. 0;
}
untuk(i = CountBars - SSP; Saya >= 0; i--)
{
SsMax = High[Highest(BATAL, 0, MODE_HIGH, SSP, Saya - SSP + 1)];
SsMin = Low[Lowest(BATAL, 0, MODE_LOW, SSP, Saya - SSP + 1)];
smin = NormalizeDouble((SsMin - (SsMax - SsMin)*Kmin / 100), Digits);
smax = NormalizeDouble((SsMax - (SsMax - SsMin)*Kmax / 100), Digits);
ExtMapBuffer1[i-SSP+6] = smax;
ExtMapBuffer2[i-SSP-1] = smax;
val1 = ExtMapBuffer1[0];
val2 = ExtMapBuffer2[0];
jika(val1 > val2)
{
Komentar("ïîêَïêà buy ", val1);
jika(gAlert == true && gBuyAlertGiven == true)
{
PlaySound("peringatan. wav");
Peringatan("Buy signal at " + DoubleToStr(val1, Digits) + " pada " + Periode() +
" grafik menit");
gBuyAlertGiven = true;
gSellAlertGiven = false;
}
}
jika(val1 < val2)
{
Komentar("ïًîنàوà sell ", val2);
jika(gAlert == true && gSellAlertGiven == true)
{
PlaySound("peringatan. wav");
Peringatan("Sell signal at " + DoubleToStr(val2, Digits) + " pada " + Periode()+
" grafik menit");
gBuyAlertGiven = false;
gSellAlertGiven=true;
}
}
}
//----
kembali(0);
}
//+------------------------------------------------------------------+