Double Top.mq4

MQL4 Indicatori

Lavoro terminato

Tempo di esecuzione 41 minuti

Specifiche

Can you give this indicator my copyright and make a few changes to the code

1)instead of a triangle can the indicator draw arrow red arrow at bottom pointing up and green arrow at top pointing down.

CODE

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

//|                                                   Double_Top.mq4 |

//|                               Copyright © 2013, Gehtsoft USA LLC |

//|                                            http://fxcodebase.com |

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

#property copyright "Copyright © 2013, Gehtsoft USA LLC"

#property link      "http://fxcodebase.com"


#property indicator_chart_window

#property indicator_buffers 4

#property indicator_color1 DarkGreen

#property indicator_color2 Green

#property indicator_color3 Maroon

#property indicator_color4 Red


extern int MinHeight=10;

extern int MaxDist=20;

extern int MinBars=3;


double Top[], DoubleTop[], Bottom[], DoubleBottom[];

double MinHeightPip;


int init()

{

 IndicatorShortName("Double top");

 IndicatorDigits(Digits);

 SetIndexStyle(0,DRAW_ARROW,0,2);

 SetIndexArrow(0,119);

 SetIndexBuffer(0,Top);

 SetIndexStyle(1,DRAW_ARROW,0,4);

 SetIndexArrow(1,119);

 SetIndexBuffer(1,DoubleTop);

 SetIndexStyle(2,DRAW_ARROW,0,2);

 SetIndexArrow(2,119);

 SetIndexBuffer(2,Bottom);

 SetIndexStyle(3,DRAW_ARROW,0,4);

 SetIndexArrow(3,119);

 SetIndexBuffer(3,DoubleBottom);

 MinHeightPip=MinHeight*Point;

 return(0);

}


int deinit()

{


 return(0);

}


bool IsTop(int index)

{

 int i;

 bool Fl=true;

 for (i=1;i<=MinBars;i++)

 {

  if (High[index-i]>=High[index]) Fl=false;

 }

 if (Fl)

 {

  i=index+1;

  while (i<Bars)

  {

   if (High[i]>=High[index]) return (false);

   if (High[index]-Low[i]>=MinHeightPip) return (true);

   i++;

  }

 }

 return (false);

}


bool IsBottom(int index)

{

 int i;

 bool Fl=true;

 for (i=1;i<=MinBars;i++)

 {

  if (Low[index-i]<=Low[index]) Fl=false;

 }

 if (Fl)

 {

  i=index+1;

  while (i<Bars)

  {

   if (Low[i]<=Low[index]) return (false);

   if (High[i]-Low[index]>=MinHeightPip) return (true);

   i++;

  }

 }

 return (false);

}


bool FindPrevTop(int index)

{

 int i=index+1;

 while (i<Bars && i<=index+MaxDist)

 {

  if (Top[i]==High[i]) return (true);

  i++;

 }

 return (false);

}


bool FindPrevBottom(int index)

{

 int i=index+1;

 while (i<Bars && i<=index+MaxDist)

 {

  if (Bottom[i]==Low[i]) return (true);

  i++;

 }

 return (false);

}


int start()

{

 if(Bars<=MinBars) return(0);

 int ExtCountedBars=IndicatorCounted();

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

 int limit=Bars-2;

 if(ExtCountedBars>2) limit=Bars-ExtCountedBars-1;

 int pos;

 pos=limit;

 while(pos>=0)

 {

  if (IsTop(pos+MinBars))

  {

   Top[pos+MinBars]=High[pos+MinBars];

  }

  else

  {

   Top[pos+MinBars]=EMPTY_VALUE;

  }


  if (IsBottom(pos+MinBars))

  {

   Bottom[pos+MinBars]=Low[pos+MinBars];

  }

  else

  {

   Bottom[pos+MinBars]=EMPTY_VALUE;

  }

  

  if (Top[pos+MinBars]==High[pos+MinBars])

  {

   if (FindPrevTop(pos+MinBars))

   {

    DoubleTop[pos+MinBars]=High[pos+MinBars];

   }

   else

   {

    DoubleTop[pos+MinBars]=EMPTY_VALUE;

   }

  }

  

  if (Bottom[pos+MinBars]==Low[pos+MinBars])

  {

   if (FindPrevBottom(pos+MinBars))

   {

    DoubleBottom[pos+MinBars]=Low[pos+MinBars];

   }

   else

   {

    DoubleBottom[pos+MinBars]=EMPTY_VALUE;

   }

  }

  

  pos--;

 } 

 return(0);

}

Con risposta

1
Sviluppatore 1
Valutazioni
(121)
Progetti
134
66%
Arbitraggio
36
25% / 56%
In ritardo
22
16%
Gratuito
2
Sviluppatore 2
Valutazioni
(103)
Progetti
205
41%
Arbitraggio
17
29% / 71%
In ritardo
45
22%
Gratuito
3
Sviluppatore 3
Valutazioni
(725)
Progetti
1045
39%
Arbitraggio
47
49% / 23%
In ritardo
84
8%
Gratuito
4
Sviluppatore 4
Valutazioni
(180)
Progetti
301
30%
Arbitraggio
54
24% / 56%
In ritardo
98
33%
Gratuito
5
Sviluppatore 5
Valutazioni
(362)
Progetti
496
39%
Arbitraggio
27
56% / 4%
In ritardo
53
11%
Gratuito
6
Sviluppatore 6
Valutazioni
(467)
Progetti
701
56%
Arbitraggio
44
30% / 32%
In ritardo
114
16%
In elaborazione
7
Sviluppatore 7
Valutazioni
(128)
Progetti
236
65%
Arbitraggio
30
37% / 23%
In ritardo
49
21%
Gratuito
8
Sviluppatore 8
Valutazioni
(251)
Progetti
400
54%
Arbitraggio
9
67% / 22%
In ritardo
36
9%
Gratuito
9
Sviluppatore 9
Valutazioni
(2428)
Progetti
3057
66%
Arbitraggio
77
48% / 14%
In ritardo
340
11%
In elaborazione
10
Sviluppatore 10
Valutazioni
(106)
Progetti
314
49%
Arbitraggio
42
52% / 19%
In ritardo
22
7%
Gratuito
11
Sviluppatore 11
Valutazioni
(129)
Progetti
208
54%
Arbitraggio
21
24% / 52%
In ritardo
64
31%
Gratuito
12
Sviluppatore 12
Valutazioni
(46)
Progetti
73
16%
Arbitraggio
13
8% / 92%
In ritardo
37
51%
Gratuito
Ordini simili
Connect from Mt5 via binary deriv account api I have mt5 indicator, need to connect with binary deriv account through api. If anyone can setup via API then contact me. everything control mt5
Hello I am looking for a developer to create an 50% retracement Indicator of the previous candle . So once a candle close the Indicator is supposed to take the full candle size from high to low and make a 61% and 50% level on that candle and I would like the candle to show until the next previous candle is done creating. After this I would look to create an ea with it possibly
Hi, I have 2 indicators which are based on the super trend , the alerts on indicator (1) does not work at all , and on the other indicator the alerts do not come on time on time, which is kind of delayed. see attached file below
Looking for an experienced developer to modify my existing TDI strategy , want to add filter for Buy and Sell Signals, Arrows are displayed on chart and what only to leave high accurate arrows Source code to be provided
I have the mq5 file, I need a buffer adding to the indicator, so it appears in the data window so I can reference it later in an EA. As the below screenshot shows, there is a median ray line from yesterday (the dashed horizontal line) - I want this value in the data window called Median Ray. I want this to be a single value per day, so todays Median Ray would be 17868, and so on each day. So I want all the Developing
I would like to develop my own indicator on metatrader 4 and tradingview. We would start with a basic version that we would improve later. It is an indicator based on several analyses and which would provide several indications. I am looking for someone who can develop on MT4 and Mt5, initially I would like to do it on mt4 and then on mt5. If you have expertise in pinescript it is a plus because I would like to
I urgently require swift assistance to convert a complex indicator into a fully functional scanner, capable of automatically sending real-time data, alerts, and notifications via email, ensuring seamless integration and prompt delivery of critical information to facilitate informed decision-making and timely action
I need to improve the code of an indicator that is too heavy and slow when running and when used with iCustom in an EA. No other changes to the indicator are requested: the original features of the indicator should remain as theay are. I'll provide the indicator after job acceptance. I request final source code mq5 file. Thank you Regards
I have a mt5 indicator that is working perfectly but I will like to make it an expert advisor to have an automated trade. I will be glad if I can get a well experienced developer to execute this project. Thanks
O TRABALHO CONSISTE NA MUDANÇA DO HISTOGRAMA DO INDICADOR TREDN DIRECTION AND FORCE DSEMA SMOOTHED PARA O HISTOGRAMA DA FOTO ANEXA, OBEDECENDO AS TRES CORES VERDE (UP, VERMELHOR(DOWN) E CINZA(TREND). O MESMO TEM QUE ODECER O MESMO CALCULO E COLORIR DA MESMA FORMA POREM COM HISTOGRAMA DDE FORMATO DIFERENTE

Informazioni sul progetto

Budget
25 USD
Per lo sviluppatore
22.5 - 22.5 USD
Scadenze
da 1 a 5 giorno(i)