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

MQL4 Esperti Altro

Lavoro terminato

Tempo di esecuzione 20 ore
Feedback del cliente
Быстро и качественно.
Feedback del dipendente
Отличный заказчик!

Specifiche

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);

}

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



Con risposta

1
Sviluppatore 1
Valutazioni
(106)
Progetti
189
46%
Arbitraggio
34
24% / 41%
In ritardo
58
31%
Gratuito
2
Sviluppatore 2
Valutazioni
(241)
Progetti
387
51%
Arbitraggio
14
14% / 14%
In ritardo
43
11%
Gratuito
3
Sviluppatore 3
Valutazioni
(551)
Progetti
1334
59%
Arbitraggio
28
82% / 0%
In ritardo
10
1%
Gratuito
4
Sviluppatore 4
Valutazioni
(280)
Progetti
650
28%
Arbitraggio
111
19% / 61%
In ritardo
319
49%
Gratuito
5
Sviluppatore 5
Valutazioni
(1100)
Progetti
1456
46%
Arbitraggio
49
73% / 12%
In ritardo
36
2%
Gratuito
6
Sviluppatore 6
Valutazioni
(351)
Progetti
679
56%
Arbitraggio
33
15% / 39%
In ritardo
63
9%
Gratuito
7
Sviluppatore 7
Valutazioni
(254)
Progetti
573
36%
Arbitraggio
64
20% / 58%
In ritardo
147
26%
Gratuito
8
Sviluppatore 8
Valutazioni
(10)
Progetti
17
24%
Arbitraggio
7
14% / 86%
In ritardo
2
12%
Gratuito
9
Sviluppatore 9
Valutazioni
(560)
Progetti
771
46%
Arbitraggio
23
39% / 13%
In ritardo
63
8%
In elaborazione
10
Sviluppatore 10
Valutazioni
(30)
Progetti
45
16%
Arbitraggio
2
0% / 100%
In ritardo
4
9%
Gratuito
11
Sviluppatore 11
Valutazioni
(4)
Progetti
12
0%
Arbitraggio
0
In ritardo
3
25%
Gratuito
12
Sviluppatore 12
Valutazioni
(229)
Progetti
339
49%
Arbitraggio
21
5% / 33%
In ritardo
24
7%
Gratuito
13
Sviluppatore 13
Valutazioni
(14)
Progetti
22
59%
Arbitraggio
2
0% / 50%
In ritardo
2
9%
Gratuito
14
Sviluppatore 14
Valutazioni
(356)
Progetti
632
26%
Arbitraggio
89
73% / 13%
In ritardo
12
2%
Gratuito
15
Sviluppatore 15
Valutazioni
(142)
Progetti
280
42%
Arbitraggio
18
61% / 6%
In ritardo
29
10%
Gratuito
16
Sviluppatore 16
Valutazioni
(586)
Progetti
1048
49%
Arbitraggio
39
28% / 41%
In ritardo
49
5%
Gratuito
17
Sviluppatore 17
Valutazioni
(66)
Progetti
143
34%
Arbitraggio
10
10% / 60%
In ritardo
26
18%
Gratuito
18
Sviluppatore 18
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
19
Sviluppatore 19
Valutazioni
(1097)
Progetti
1778
61%
Arbitraggio
14
64% / 7%
In ritardo
84
5%
Gratuito
20
Sviluppatore 20
Valutazioni
(45)
Progetti
59
42%
Arbitraggio
5
0% / 60%
In ritardo
12
20%
Gratuito

Informazioni sul progetto

Budget
30 - 40 USD
Per lo sviluppatore
27 - 36 USD
Scadenze
da 3 a 7 giorno(i)