MT5! Create an breakout EA (pending orders) with frontend buttons for interacting

MQL5 Experts

Job finished

Execution time 6 days

Specification

Conditions for „german30 breakout EA“:

1.       Place a button „draw lines“ in the right top corner. On Click the button, the color of the button must change from light grey to light red.
Function of this button: they must draw 3 lines in the chart. The first, at the current price, the second x-Points above and the third line x-Points below the current price line. à Picture 1


The middle line can be move „drag&drop“ and simultaneously the two other lines will move too. The Range must be implement as a parameter „box range“ in points, for example: 15
Again, the line above the current price line: current line + („box range“ / 2)
The line below: current line - („box range“ / 2)

2.       Place a second button „Place Orders“ below the first. After click this button, all following actions should be done automatically. The button must be blace two Orders. One sell stop Order at the price from the lower line and one buy stop order at the price from the higher line. When one of the orders are executed the other order must be replaced with a new pending order with a factor of 3. For example: The two orders are placed with 0.1 lots. The lower order are executed and at the same time the higher order with 0.1 lots will be replaced with another pending order with 0.3 lots. See picture 2:

Point 0 (starting position):

-          0.1 contract pending long

-          0.1 contract pending short

Point 1:

-          Fill short position with 0.1 short

-          Pending long with 0.3

Point 2:

-          Fill long position with 0.3 long

-          New pending short with 0.9

Point 3:

-          Fill short with 0.9

-          New pending long with 2.7

Point 4:

-          Take profit will reach. Close all open orders, starting with the biggest position (0.9)

-          Delete pending orders

             Take profit must be set as a parameter, initial at 7.5 points

3.       Draw the current daily pivot, refreshing by a new day. The color must be set as a parameter

 At the end of the assignment, i need the mq5 file.


Files:

PNG
1.png
35.2 Kb
PNG
2.png
99.1 Kb

Responded

1
Developer 1
Rating
(213)
Projects
246
45%
Arbitration
42
10% / 57%
Overdue
5
2%
Free
2
Developer 2
Rating
(2636)
Projects
3351
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
3
Developer 3
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
4
Developer 4
Rating
(414)
Projects
670
33%
Arbitration
60
17% / 32%
Overdue
113
17%
Working

Project information

Budget
60+ USD
Deadline
to 30 day(s)