SilverTrend_Signal

0
(0)
姓名:
SilverTrend_Signal [ | cn ]
作者: 作家 (2008.01.08 11:26)
已下載: 4225
下載:
SilverTrend_Signal 1
SilverTrend Signal w[1].Alert.mq4 (3.4 KB) 看法
作者: Ramdass - Conversion only

Indicator SilverTrend Signal.
SilverTrend_Signal 2
2 評論 發表新評論, 請 登錄 或者 登記

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. 謝謝

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 "網址://viac.ru/"
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Violet
//---- 輸入參數
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);
//----
return(0);
}
//+------------------------------------------------------------------+
//| SilverTrend_Signal |
//+------------------------------------------------------------------+
int start()
{
如果 (CountBars>=Bars) CountBars=Bars;
SetIndexDrawBegin(0,Bars-CountBars+SSP);
SetIndexDrawBegin(1,Bars-CountBars+SSP);
int i,轉移,counted_bars=IndicatorCounted();
int i1,i2,K;
double Range,AvgRange,smin,smax,SsMax,SsMin,價格;
bool uptrend,old;
//----
如果(酒吧<=SSP+1) return(0);
//---- initial zero
如果(counted_bars<SSP+1)
{
為了(i=1;我<=SSP;i++) val1[CountBars-i]=0.0;
為了(i=1;我<=SSP;i++) val2[CountBars-i]=0.0;
}
//----
K=33-RISK;
為了(shift=CountBars-SSP; 轉移>=0; shift--)
{
Range=0;
AvgRange=0;
為了(i1=shift; i1<=shift+SSP; i1++)
{AvgRange=AvgRange+MathAbs(高的[i1]-低的[i1]);
}
Range=AvgRange/(SSP+1);
//----
SsMax=High[轉移]; SsMin=Low[轉移];
為了(i2=shift;i2<=shift+SSP-1;i2++)
{
price=High[i2];
如果(SsMax<價格) SsMax=price;
price=Low[i2];
如果(SsMin>=price) SsMin=price;
}
smin=SsMin+(SsMax-SsMin)*K/100;
smax=SsMax-(SsMax-SsMin)*K/100;
val1[轉移]=0;
val2[轉移]=0;
如果 (關閉[轉移]<smin)
{
uptrend=false;
}
如果 (關閉[轉移]>smax)
{
uptrend=true;
}
如果 (上升趨勢!=old && uptrend==true)
{
val1[轉移]=Low[轉移]-Range*0.5;
counter=0;

{

}
}
如果 (上升趨勢!=old && uptrend==false)
{
counter=0;
val2[轉移]=High[轉移]+Range*0.5;

{

}
}
評論(轉移);
old=uptrend;
}
return(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. 謝謝

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.