Нужен советник на основе индикатора

MQL4 Uzman Danışmanlar Diğer

İş tamamlandı

Tamamlanma süresi: 20 saat
Müşteri tarafından geri bildirim
Быстро и качественно.
Geliştirici tarafından geri bildirim
Отличный заказчик!

İş Gereklilikleri

property indicator_chart_window

#property indicator_buffers 3

#property indicator_color1 Yellow

#property indicator_color2 Green

#property indicator_color3 Red

#property indicator_width1 2

#property indicator_width2 2

#property indicator_width3 2


//---- input parameters

extern int period=16;

extern int method=3; // MODE_SMA

extern int price=0; // PRICE_CLOSE

extern int sdvig=0;


extern bool bPlaySound=true; // Включение звука при смене цвета

extern bool bAllert=true; // Включение звука при смене цвета

extern string SoundName="alert.wav"; // Звуковой файл

extern int CheckBar=1;

//---- buffers


double Uptrend[];

double Dntrend[];

double ExtMapBuffer[];


double vect[];


static bool bs=false,ba=false;

static int bTime=0;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

IndicatorBuffers(4);

SetIndexBuffer(0,ExtMapBuffer);

SetIndexBuffer(1,Uptrend);

SetIndexBuffer(2,Dntrend);

SetIndexBuffer(3,vect);


SetIndexStyle(0,DRAW_LINE);

SetIndexStyle(1,DRAW_LINE);

SetIndexStyle(2,DRAW_LINE);


SetIndexDrawBegin(0,1*period);

SetIndexDrawBegin(1,2*period);

SetIndexDrawBegin(2,3*period);


IndicatorShortName("Signal Line("+period+")");

SetIndexLabel(1,"UP");

SetIndexLabel(2,"DN");


bs=false;

ba=false;

bTime=0;


return(0);

}


//+------------------------------------------------------------------+

//| Custor indicator deinitialization function |

//+------------------------------------------------------------------+

int deinit() { return(0); }


//+------------------------------------------------------------------+

//| ?????????? ??????? |

//+------------------------------------------------------------------+

double WMA(int x,int p) { return(iMA(NULL,0,p,0,method,price,x+sdvig)); }

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

int p=MathSqrt(period);


int i,limit0,limit1,limit2;

int counted_bars = IndicatorCounted();

if(counted_bars < 0) return(-1);

if(counted_bars > 0) counted_bars--;

limit2 = Bars - counted_bars;

if(counted_bars==0) limit2--;

limit1=limit2;

limit0=limit1;


if(counted_bars==0)

{

limit1-=(period);

limit2-=(2*period);

}


for(i = limit0; i >= 0; i--) vect[i] = 2*WMA(i, period/2) - WMA(i, period);

for(i = limit1; i >= 0; i--) ExtMapBuffer[i] = iMAOnArray(vect, 0, p, 0, method, i);

for(i=limit2; i>=0; i--)

{

Uptrend[i] = EMPTY_VALUE; if(ExtMapBuffer[i]> ExtMapBuffer[i+1]) {Uptrend[i+1] = ExtMapBuffer[i+1]; Uptrend[i] = ExtMapBuffer[i]; }

Dntrend[i] = EMPTY_VALUE; if(ExtMapBuffer[i]< ExtMapBuffer[i+1]) {Dntrend[i+1] = ExtMapBuffer[i+1]; Dntrend[i] = ExtMapBuffer[i]; }

}

if(bTime!=Time[0])

{

bTime=Time[0];

bs=false;

ba=false;

}

if((ExtMapBuffer[CheckBar+2]-ExtMapBuffer[CheckBar+1])*(ExtMapBuffer[CheckBar+1]-ExtMapBuffer[CheckBar])<0)

{

if(bPlaySound && !bs) PlaySound(SoundName);

bs=true;

if(bAllert && !ba)

{

string mes="";

if(ExtMapBuffer[CheckBar]-ExtMapBuffer[CheckBar+1]>0) mes="Смена тренда, восходящий";

if(ExtMapBuffer[CheckBar]-ExtMapBuffer[CheckBar+1]<0) mes="Смена тренда, нисходящий";

if(mes!="") Alert(mes+": "+Symbol()+"; "+Period_toStr()+"; "+DoubleToStr(Bid,Digits));

}

ba=true;

}

return(0);

}

//+------------------------------------------------------------------+



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(106)
Projeler
189
46%
Arabuluculuk
34
24% / 41%
Süresi dolmuş
58
31%
Serbest
2
Geliştirici 2
Derecelendirme
(241)
Projeler
387
51%
Arabuluculuk
14
14% / 14%
Süresi dolmuş
43
11%
Serbest
3
Geliştirici 3
Derecelendirme
(551)
Projeler
1334
59%
Arabuluculuk
28
82% / 0%
Süresi dolmuş
10
1%
Serbest
4
Geliştirici 4
Derecelendirme
(280)
Projeler
650
28%
Arabuluculuk
111
19% / 61%
Süresi dolmuş
319
49%
Serbest
5
Geliştirici 5
Derecelendirme
(1100)
Projeler
1456
46%
Arabuluculuk
49
73% / 12%
Süresi dolmuş
36
2%
Serbest
6
Geliştirici 6
Derecelendirme
(351)
Projeler
679
56%
Arabuluculuk
33
15% / 39%
Süresi dolmuş
63
9%
Serbest
7
Geliştirici 7
Derecelendirme
(254)
Projeler
573
36%
Arabuluculuk
64
20% / 58%
Süresi dolmuş
147
26%
Serbest
8
Geliştirici 8
Derecelendirme
(10)
Projeler
17
24%
Arabuluculuk
7
14% / 86%
Süresi dolmuş
2
12%
Serbest
9
Geliştirici 9
Derecelendirme
(560)
Projeler
771
46%
Arabuluculuk
23
39% / 13%
Süresi dolmuş
63
8%
Çalışıyor
10
Geliştirici 10
Derecelendirme
(30)
Projeler
45
16%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
4
9%
Serbest
11
Geliştirici 11
Derecelendirme
(4)
Projeler
12
0%
Arabuluculuk
0
Süresi dolmuş
3
25%
Serbest
12
Geliştirici 12
Derecelendirme
(229)
Projeler
339
49%
Arabuluculuk
21
5% / 33%
Süresi dolmuş
24
7%
Serbest
13
Geliştirici 13
Derecelendirme
(14)
Projeler
22
59%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
2
9%
Serbest
14
Geliştirici 14
Derecelendirme
(356)
Projeler
632
26%
Arabuluculuk
89
73% / 13%
Süresi dolmuş
12
2%
Serbest
15
Geliştirici 15
Derecelendirme
(142)
Projeler
280
42%
Arabuluculuk
18
61% / 6%
Süresi dolmuş
29
10%
Serbest
16
Geliştirici 16
Derecelendirme
(586)
Projeler
1048
49%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Serbest
17
Geliştirici 17
Derecelendirme
(66)
Projeler
143
34%
Arabuluculuk
10
10% / 60%
Süresi dolmuş
26
18%
Serbest
18
Geliştirici 18
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(1097)
Projeler
1778
61%
Arabuluculuk
14
64% / 7%
Süresi dolmuş
84
5%
Serbest
20
Geliştirici 20
Derecelendirme
(45)
Projeler
59
42%
Arabuluculuk
5
0% / 60%
Süresi dolmuş
12
20%
Serbest

Proje bilgisi

Bütçe
30 - 40 USD
Geliştirici için
27 - 36 USD
Son teslim tarihi
from 3 to 7 gün