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/ |
//+------------------------------------------------------------------+
#property copyright "SilverTrend rewritten by CrazyChart"
#property link "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 init()
{
//---- संकेतक
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 start()
{
int i,
i2,
loopbegin,
counted_bars = IndicatorCounted();
double SsMax,
SsMin,
K,
val1,
val2,
smin,
smax,
कीमत;
अगर(सलाखों <= SSP + 1)
वापस करना(0);
//---- initial zero
अगर(counted_bars < SSP + 1)
{
के लिए(मैं = 1; मैं <= SSP; i++)
ExtMapBuffer1[CountBars-i] = 0. 0;
के लिए(मैं = 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), 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];
अगर(val1 > val2)
{
टिप्पणी("ïîêَïêà buy ", val1);
अगर(gAlert == true && gBuyAlertGiven == true)
{
PlaySound("चेतावनी. wav");
चेतावनी("Buy signal at " + DoubleToStr(val1, Digits) + " पर " + अवधि() +
" मिनट चार्ट");
gBuyAlertGiven = true;
gSellAlertGiven = false;
}
}
अगर(val1 < val2)
{
टिप्पणी("ïًîنàوà sell ", val2);
अगर(gAlert == true && gSellAlertGiven == true)
{
PlaySound("चेतावनी. wav");
चेतावनी("Sell signal at " + DoubleToStr(val2, Digits) + " पर " + अवधि()+
" मिनट चार्ट");
gBuyAlertGiven = false;
gSellAlertGiven=true;
}
}
}
//----
वापस करना(0);
}
//+------------------------------------------------------------------+