Double Top.mq4

MQL4 Indicadores

Trabalho concluído

Tempo de execução 41 minutos

Termos de Referência

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

}

Respondido

1
Desenvolvedor 1
Classificação
(121)
Projetos
134
66%
Arbitragem
36
25% / 56%
Expirado
22
16%
Livre
2
Desenvolvedor 2
Classificação
(103)
Projetos
205
41%
Arbitragem
17
29% / 71%
Expirado
45
22%
Livre
3
Desenvolvedor 3
Classificação
(721)
Projetos
1040
39%
Arbitragem
47
49% / 23%
Expirado
84
8%
Livre
4
Desenvolvedor 4
Classificação
(180)
Projetos
301
30%
Arbitragem
54
24% / 56%
Expirado
98
33%
Livre
5
Desenvolvedor 5
Classificação
(362)
Projetos
496
39%
Arbitragem
27
56% / 4%
Expirado
53
11%
Livre
6
Desenvolvedor 6
Classificação
(466)
Projetos
697
56%
Arbitragem
43
30% / 33%
Expirado
113
16%
Trabalhando
7
Desenvolvedor 7
Classificação
(128)
Projetos
236
65%
Arbitragem
30
37% / 23%
Expirado
49
21%
Livre
8
Desenvolvedor 8
Classificação
(251)
Projetos
400
54%
Arbitragem
9
67% / 22%
Expirado
36
9%
Livre
9
Desenvolvedor 9
Classificação
(2422)
Projetos
3042
66%
Arbitragem
77
48% / 14%
Expirado
340
11%
Trabalhando
10
Desenvolvedor 10
Classificação
(106)
Projetos
314
49%
Arbitragem
42
52% / 19%
Expirado
22
7%
Livre
11
Desenvolvedor 11
Classificação
(129)
Projetos
208
54%
Arbitragem
21
24% / 52%
Expirado
64
31%
Livre
12
Desenvolvedor 12
Classificação
(46)
Projetos
73
16%
Arbitragem
13
8% / 92%
Expirado
37
51%
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
25 USD
Desenvolvedor
22.5 - 22.5 USD
Prazo
de 1 para 5 dias