Double Top.mq4

MQL4 Indicadores

Trabajo finalizado

Plazo de ejecución 41 minutos

Tarea técnica

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

}

Han respondido

1
Desarrollador 1
Evaluación
(121)
Proyectos
134
66%
Arbitraje
36
25% / 56%
Caducado
22
16%
Libre
2
Desarrollador 2
Evaluación
(103)
Proyectos
205
41%
Arbitraje
17
29% / 71%
Caducado
45
22%
Libre
3
Desarrollador 3
Evaluación
(721)
Proyectos
1040
39%
Arbitraje
47
49% / 23%
Caducado
84
8%
Libre
4
Desarrollador 4
Evaluación
(180)
Proyectos
301
30%
Arbitraje
54
24% / 56%
Caducado
98
33%
Libre
5
Desarrollador 5
Evaluación
(362)
Proyectos
496
39%
Arbitraje
27
56% / 4%
Caducado
53
11%
Libre
6
Desarrollador 6
Evaluación
(466)
Proyectos
697
56%
Arbitraje
43
30% / 33%
Caducado
113
16%
Trabaja
7
Desarrollador 7
Evaluación
(128)
Proyectos
236
65%
Arbitraje
30
37% / 23%
Caducado
49
21%
Libre
8
Desarrollador 8
Evaluación
(251)
Proyectos
400
54%
Arbitraje
9
67% / 22%
Caducado
36
9%
Libre
9
Desarrollador 9
Evaluación
(2422)
Proyectos
3042
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Trabaja
10
Desarrollador 10
Evaluación
(106)
Proyectos
314
49%
Arbitraje
42
52% / 19%
Caducado
22
7%
Libre
11
Desarrollador 11
Evaluación
(129)
Proyectos
208
54%
Arbitraje
21
24% / 52%
Caducado
64
31%
Libre
12
Desarrollador 12
Evaluación
(46)
Proyectos
73
16%
Arbitraje
13
8% / 92%
Caducado
37
51%
Libre
Solicitudes similares
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
I need someone the create a supertrend indicator based on Heikin Ashi candles instead of normal candles. Needs to be exactly the same as the supertrend (original one) + ha from tradingview. In m1,m5,m15 the indicator must have the same values ​​found with the tradingview. Work that meets this requirement will be accepted ( depending on the broker and spread, however, a few pips of difference will be accepted)
Here is a detailed instruction for the coder to implement the vertical lines based on the BrainTrainSignalAlert indicator: --- **Task: Implement Vertical Lines for Alerts from BrainTrainSignalAlert Indicator** **Objective:** Create a system that adds vertical lines on specified timeframes (M5 or M30) whenever an alert is generated by the BrainTrainSignalAlert indicator on the H1, H4, and D1 timeframes. The lines
Hello Guys! I want to modify/fix the indicator that uses sequential type of entries (it calculates from 1 to 9) and if the conditions are met it provides an arrow (signal) with alert. The problem is that, sometimes (for unknown for me reasons) it repaints arrow signal. Like on the picture: Signal 1 - correct signal Signal 2 - correct signal Signal 3 - correct signal Signal 4 - repaints (signal 3 arrow dissapeared
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
Hello, i am searching for an experienced, professional software engineer, who can convert three Indicators from MQL4 to MQL5. This may sound like an easy job, but one indicator is like a trading system and therefore a bit complex. So you need to have a very good understanding of both languages. You should also be able to code MQL5 classes ( https://www.mql5.com/en/docs/basis/oop ). The intention is to code MQL5
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
I have a full code ,, There are some errors in this.It does not add to the chart, does not show arrow marks, does not alert ,, fix this problem and work properly,, Contact on telegram @Gw_rakib1
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should

Información sobre el proyecto

Presupuesto
25 USD
Para el ejecutor
22.5 - 22.5 USD
Plazo límite de ejecución
de 1 a 5 día(s)