SilverTrend_Signal

0
(0)
ਨਾਮ:
SilverTrend_Signal [ ru | cn ]
ਲੇਖਕ: ਲੇਖਕ (2008.01.08 11:26)
ਡਾਊਨਲੋਡ ਕੀਤਾ: 4225
ਡਾਊਨਲੋਡ ਕਰੋ:
SilverTrend_Signal 1
SilverTrend Signal w[1].Alert.mq4 (3.4 ਕੇ.ਬੀ) ਦੇਖੋ
ਲੇਖਕ: 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 |
//+------------------------------------------------------------------+
#ਸੰਪਤੀ ਕਾਪੀਰਾਈਟ "SilverTrend rewritten by CrazyChart"
#ਜਾਇਦਾਦ ਲਿੰਕ "http://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);
//----
ਵਾਪਸੀ(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,price;
bool uptrend,old;
//----
ਜੇਕਰ(Bars<=SSP+1) ਵਾਪਸੀ(0);
//---- initial zero
ਜੇਕਰ(counted_bars<SSP+1)
{
ਲਈ(i=1;i<=SSP;i++) val1[CountBars-i]=0.0;
ਲਈ(i=1;i<=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(High[i1]-ਘੱਟ[i1]);
}
Range=AvgRange/(SSP+1);
//----
SsMax=High[ਸ਼ਿਫਟ]; SsMin=Low[ਸ਼ਿਫਟ];
ਲਈ(i2=shift;i2<=shift+SSP-1;i2++)
{
price=High[i2];
ਜੇਕਰ(SsMax<price) 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;
}
ਜੇਕਰ (uptrend!=old && uptrend==true)
{
val1[ਸ਼ਿਫਟ]=Low[ਸ਼ਿਫਟ]-Range*0.5;
counter=0;

{

}
}
ਜੇਕਰ (uptrend!=old && uptrend==false)
{
counter=0;
val2[ਸ਼ਿਫਟ]=High[ਸ਼ਿਫਟ]+Range*0.5;

{

}
}
ਟਿੱਪਣੀ(ਸ਼ਿਫਟ);
old=uptrend;
}
ਵਾਪਸੀ(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] ਜੋ ਸਾਡੀਆਂ ਸ਼ਰਤਾਂ 'ਤੇ ਜ਼ਿੰਦਗੀ ਜਿਊਣ ਲਈ ਸਮਰਪਿਤ ਹਨ. ਸਾਡਾ ਮੁੱਖ ਉਦੇਸ਼ ਵਿੱਤੀ ਸੁਤੰਤਰਤਾ ਅਤੇ ਆਜ਼ਾਦੀ ਪ੍ਰਾਪਤ ਕਰਨਾ ਹੈ, ਅਤੇ ਅਸੀਂ ਸਵੈ-ਸਿੱਖਿਆ ਦਾ ਪਿੱਛਾ ਕੀਤਾ ਹੈ ਅਤੇ ਇੱਕ ਸਵੈ-ਟਿਕਾਊ ਜੀਵਨ ਸ਼ੈਲੀ ਨੂੰ ਪ੍ਰਾਪਤ ਕਰਨ ਦੇ ਸਾਡੇ ਸਾਧਨ ਵਜੋਂ ਫੋਰੈਕਸ ਬਜ਼ਾਰ ਵਿੱਚ ਵਿਆਪਕ ਅਨੁਭਵ ਪ੍ਰਾਪਤ ਕੀਤਾ ਹੈ।.