Double Top.mq4

MQL4 Indicators

Job finished

Execution time 41 minutes

Specification

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

}

Responded

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

Project information

Budget
25 USD
For the developer
22.5 - 22.5 USD
Deadline
from 1 to 5 day(s)