SilverTrend_Signal

0
(0)
Tên:
SilverTrend_Signal [ ru | cn ]
Tác giả: Người viết (2008.01.08 11:26)
Đã tải xuống: 4225
Tải xuống:
SilverTrend_Signal 1
SilverTrend Signal w[1].Alert.mq4 (3.4 Kb) Xem
Tác giả: Ramdass - Conversion only

Indicator SilverTrend Signal.
SilverTrend_Signal 2
2 bình luận Để gửi bình luận mới, Xin vui lòng đăng nhập hoặc đăng ký

Samlup wrote:
how do i stop this indicator from giving so many audible signals and also so many Alerts in the Alert window....dont mind the arrows coming and going but the alert window and sound is driving me crazy. Cảm ơn

This may work. I am not an MQL coder so not sure if it will effect its functionality or if I did this right.
 

Here is the version with NO alert.
 

//+------------------------------------------------------------------+
//| SilverTrend_Signal.mq4 |
//| Ramdass - Conversion only |
//+------------------------------------------------------------------+
#property copyright "SilverTrend rewritten by CrazyChart"
#property link "http://viac.ru/"
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Violet
//---- thông số đầu vào
extern int RISK=3;
extern int CountBars=350;
int SSP=9;
int counter=0;
//---- buffers
double val1[];
double val2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- indicator line
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(0,val1);
SetIndexBuffer(1,val2);
//----
trở lại(0);
}
//+------------------------------------------------------------------+
//| SilverTrend_Signal |
//+------------------------------------------------------------------+
int start()
{
nếu như (CountBars>=Bars) CountBars=Bars;
SetIndexDrawBegin(0,Bars-CountBars+SSP);
SetIndexDrawBegin(1,Bars-CountBars+SSP);
int i,sự thay đổi,counted_bars=IndicatorCounted();
int i1,i2,K;
double Range,AvgRange,smin,smax,SsMax,SsMin,giá ;
bool uptrend,old;
//----
nếu như(thanh<=SSP+1) trở lại(0);
//---- initial zero
nếu như(counted_bars<SSP+1)
{
vì(i=1;Tôi<=SSP;i++) val1[CountBars-i]=0.0;
vì(i=1;Tôi<=SSP;i++) val2[CountBars-i]=0.0;
}
//----
K=33-RISK;
vì(shift=CountBars-SSP; sự thay đổi>=0; shift--)
{
Range=0;
AvgRange=0;
vì(i1=shift; i1<=shift+SSP; i1++)
{AvgRange=AvgRange+MathAbs(Cao[i1]-Thấp[i1]);
}
Range=AvgRange/(SSP+1);
//----
SsMax=High[sự thay đổi]; SsMin=Low[sự thay đổi];
vì(i2=shift;i2<=shift+SSP-1;i2++)
{
price=High[i2];
nếu như(SsMax<giá ) SsMax=price;
price=Low[i2];
nếu như(SsMin>=price) SsMin=price;
}
smin=SsMin+(SsMax-SsMin)*K/100;
smax=SsMax-(SsMax-SsMin)*K/100;
val1[sự thay đổi]=0;
val2[sự thay đổi]=0;
nếu như (Đóng[sự thay đổi]<smin)
{
uptrend=false;
}
nếu như (Đóng[sự thay đổi]>smax)
{
uptrend=true;
}
nếu như (uptrend!=old && uptrend==true)
{
val1[sự thay đổi]=Low[sự thay đổi]-Range*0.5;
counter=0;

{

}
}
nếu như (uptrend!=old && uptrend==false)
{
counter=0;
val2[sự thay đổi]=High[sự thay đổi]+Range*0.5;

{

}
}
Bình luận(sự thay đổi);
old=uptrend;
}
trở lại(0);
}
//+------------------------------------------------------------------+
 
 

Just open your existing copy and paste this over it and press compile and it will be the same as this one then.
 

'Ring Tone'

18.07.2008 03:04 FXIA

how do i stop this indicator from giving so many audible signals and also so many Alerts in the Alert window....dont mind the arrows coming and going but the alert window and sound is driving me crazy. Cảm ơn

Bài đăng này hữu ích như thế nào?

Bấm vào một ngôi sao để đánh giá nó!

Đánh giá trung bình 0 / 5. Số phiếu bầu: 0

Không có phiếu bầu cho đến nay! Hãy là người đầu tiên đánh giá bài viết này.

Chúng tôi xin lỗi vì bài đăng này không hữu ích cho bạn!

Hãy để chúng tôi cải thiện bài đăng này!

Hãy cho chúng tôi biết cách chúng tôi có thể cải thiện bài đăng này?



Tác giả: Nhóm ngoại hối Wiki
Chúng tôi là một nhóm gồm các Nhà giao dịch ngoại hối giàu kinh nghiệm [2000-2023] những người cống hiến để sống cuộc sống theo cách riêng của chúng ta. Mục tiêu chính của chúng tôi là đạt được sự độc lập và tự do về tài chính, và chúng tôi đã theo đuổi việc tự học và có được nhiều kinh nghiệm trong thị trường ngoại hối như là phương tiện của chúng tôi để đạt được lối sống bền vững.