Trabalho concluído
Termos de Referência
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.