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.
친애하는,
Jamal Barakat
======================
//+------------------------------------------------------------------+
//| Filename changed to ForexOFFTrend. mq4 by CrazyChart |
//| SilverTrend .mq4 |
//| SilverTrend rewritten by CrazyChart |
//| http://viac.ru/ |
//+------------------------------------------------------------------+
#재산 저작권 "SilverTrend rewritten by CrazyChart"
#속성 링크 "http://viac.ru/ "
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//---- 입력 매개변수
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
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int 초기화()
{
//---- 지표
SetIndexStyle(0, DRAW_LINE, 0, 2);
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexStyle(1, DRAW_LINE, 0, 2);
SetIndexBuffer(1, ExtMapBuffer2);
//----
만약에(CountBars >= Bars)
CountBars = Bars;
SetIndexDrawBegin(0, 바 - CountBars + SSP);
SetIndexDrawBegin(1, 바 - CountBars + SSP);
//----
반품(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
반품(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
정수 시작()
{
int i,
i2,
loopbegin,
counted_bars = IndicatorCounted();
double SsMax,
SsMin,
K,
val1,
val2,
smin,
smax,
가격;
만약에(바 <= SSP + 1)
반품(0);
//---- initial zero
만약에(counted_bars < SSP + 1)
{
~을 위한(i = 1; 나 <= SSP; i++)
ExtMapBuffer1[CountBars-i] = 0. 0;
~을 위한(i = 1; 나 <= SSP; i++)
ExtMapBuffer2[CountBars-i] = 0. 0;
}
~을 위한(i = CountBars - SSP; 나 >= 0; i--)
{
SsMax = High[Highest(없는, 0, MODE_HIGH, SSP, 나 - SSP + 1)];
SsMin = Low[Lowest(없는, 0, MODE_LOW, SSP, 나 - SSP + 1)];
smin = NormalizeDouble((SsMin - (SsMax - SsMin)*Kmin / 100), 숫자);
smax = NormalizeDouble((SsMax - (SsMax - SsMin)*Kmax / 100), 숫자);
ExtMapBuffer1[i-SSP+6] = smax;
ExtMapBuffer2[i-SSP-1] = smax;
val1 = ExtMapBuffer1[0];
val2 = ExtMapBuffer2[0];
만약에(val1 > val2)
{
논평("ïîêَïêà buy ", val1);
만약에(gAlert == true && gBuyAlertGiven == true)
{
PlaySound("알리다. wav");
알리다("Buy signal at " + DoubleToStr(val1, 숫자) + " ~에 " + 기간() +
" 분 차트");
gBuyAlertGiven = true;
gSellAlertGiven = false;
}
}
만약에(val1 < val2)
{
논평("ïًîنàوà sell ", val2);
만약에(gAlert == true && gSellAlertGiven == true)
{
PlaySound("알리다. wav");
알리다("Sell signal at " + DoubleToStr(val2, 숫자) + " ~에 " + 기간()+
" 분 차트");
gBuyAlertGiven = false;
gSellAlertGiven=true;
}
}
}
//----
반품(0);
}
//+------------------------------------------------------------------+