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.
Atentamente,
Jamal Barakat
======================
//+------------------------------------------------------------------+
//| Filename changed to ForexOFFTrend. mq4 by CrazyChart |
//| SilverTrend .mq4 |
//| SilverTrend rewritten by CrazyChart |
//| http://viac.ru/ |
//+------------------------------------------------------------------+
#derechos de autor de propiedad "SilverTrend rewritten by CrazyChart"
#enlace de propiedad "http://viac.ru/ "
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//---- parámetros de entrada
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[];
double ExtMapBuffer2[];
//----
bool gSellAlertGiven = true; // Used to stop constant alerts
bool gBuyAlertGiven = true; // Used to stop constant alerts
//+------------------------------------------------------------------+
//| Función de inicialización de indicador personalizado |
//+------------------------------------------------------------------+
int inicio()
{
//---- indicadores
SetIndexStyle(0, DRAW_LINE, 0, 2);
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexStyle(1, DRAW_LINE, 0, 2);
SetIndexBuffer(1, ExtMapBuffer2);
//----
si(CountBars >= Bars)
CountBars = Bars;
SetIndexDrawBegin(0, Barras - CountBars + SSP);
SetIndexDrawBegin(1, Barras - CountBars + SSP);
//----
devolver(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
devolver(0);
}
//+------------------------------------------------------------------+
//| Función de iteración de indicador personalizado |
//+------------------------------------------------------------------+
inicio int()
{
int i,
i2,
loopbegin,
counted_bars = IndicatorCounted();
double SsMax,
SsMin,
k,
val1,
val2,
smin,
smax,
precio;
si(Barras <= SSP + 1)
devolver(0);
//---- initial zero
si(counted_bars < SSP + 1)
{
para(yo = 1; i <= SSP; i++)
ExtMapBuffer1[CountBars-i] = 0. 0;
para(yo = 1; i <= SSP; i++)
ExtMapBuffer2[CountBars-i] = 0. 0;
}
para(i = CountBars - SSP; i >= 0; i--)
{
SsMax = High[Highest(NULO, 0, MODE_HIGH, SSP, i - SSP + 1)];
SsMin = Low[Lowest(NULO, 0, MODE_LOW, SSP, i - SSP + 1)];
smin = NormalizeDouble((SsMin - (SsMax - SsMin)*Kmin / 100), Dígitos);
smax = NormalizeDouble((SsMax - (SsMax - SsMin)*Kmax / 100), Dígitos);
ExtMapBuffer1[i-SSP+6] = smax;
ExtMapBuffer2[i-SSP-1] = smax;
val1 = ExtMapBuffer1[0];
val2 = ExtMapBuffer2[0];
si(val1 > val2)
{
Comentario("ïîêَïêà buy ", val1);
si(gAlert == true && gBuyAlertGiven == true)
{
PlaySound("alerta. wav");
Alerta("Buy signal at " + DobleToStr(val1, Dígitos) + " en " + Período() +
" tabla de minutos");
gBuyAlertGiven = true;
gSellAlertGiven = false;
}
}
si(val1 < val2)
{
Comentario("ïًîنàوà sell ", val2);
si(gAlert == true && gSellAlertGiven == true)
{
PlaySound("alerta. wav");
Alerta("Sell signal at " + DobleToStr(val2, Dígitos) + " en " + Período()+
" tabla de minutos");
gBuyAlertGiven = false;
gSellAlertGiven=true;
}
}
}
//----
devolver(0);
}
//+------------------------------------------------------------------+