Download MetaTrader 5

An EA triggered by EMAs slope angle - Needs to work on non standard time-frames

2018.05.16 Experts

Job finished

Execution time 1 day
Feedback from customer
Five stars developer, easy to work with, knowledgeable, fast and efficient! Will work with him again.

Specification

Good evening. The EA will be set up on a 1 MIN chart and will be triggered by the a combination of EMAs slope % and candles. The chart will have only one indicator, an Exponential Moving Average (EMA) of a defined number of periods. 

The EA will have the below input areas that will define the key values for the bot to trigger the positions:

1. Stake size (1 lot standard)
2. Take profit number of pips (20 pips standard)
3. Stop Loss number of pips (20 pips standard)
4. Move “Stop Loss” to break even when the position is in profit "x" number of pips (standard will be 10 pips). It means that once a position is 10 pips in profit its original “Stop Loss” will move to break even (SL= 0)
5. Time Frame in minutes (standard will be set up at 2 minute candles)
6. EMA period (13 periods standard)
7. EMAs slope angle percentage (it will be the same value for upward and downward trends. Standard setup will be 40 degrees upwards / -40 degrees downwards)
8. Max number of open positions (standard will be 3 open positions). Please note that in order for the second, third... positions to be opened, the previous ones have to have the Stop Loss at break even, SP=0)
9. Total profit pips for the day (once that is reached the bot will stop for the day)
10. Total loss pips for the day (once that is reached the bot will stop for the day)
11. Time of the day for the bot to start running (for example 9:30am)
12. Time of the day for the bot to stop running (for example 16:30pm)

The bot will trigger a new position when all these things happen:

A. The defined EMA has more degrees slope angle (up or down) than the defined value when looking at the last two periods (or candles). 
B. There are at least two same color candles before the current candle.
C. The current candle closes with the opposite color as the two previous candles.
D. If the Input "Max number of open positions" is more than 1, all other open positions have the “Stop Loss” at break even, SL=0).
E. We have not reached the defined “Maximum number of open positions” (point number 8.)
F. The time of the day is within the set parameters.
G. The total profit / loss number of pips for the day has not been reached.

Buy positions will be triggered when all the above happens and the EMAs trend is upwards. Similarly, Sell positions when the EMAs trend is downwards. In the image attached, there is a two minute chart with an EMA 13 (green line) and the grey lines show the 40 degree angle. As the EMA 13 has a higher degree angle downwards than the defined 40 degrees, and there has been at least two red candles before the blue one, a sell position was opened when the blue candle closed. If the position gets into 10 pips profit, the “Stop Loss” will move to breakeven, SL=0.
The EA will be loaded in a standard 1 MIN Chart, but the EA needs to work on non-standard time-frames, in other words, it needs to be able to calculate 2 minute, 3 minute... candles even if the EA is launched in a standard 1 MIN Chart.


Files:

Responded

2
Developer 2
2018.05.16
Rating
4.91
(144)
Projects
239
62%
Arbitration
5
40% / 0%
Overdue
101
42%
Working
4
Developer 4
2018.05.16
Rating
4.98
(93)
Projects
103
20%
Arbitration
5
20% / 40%
Overdue
41
40%
Loaded
5
Developer 5
2018.05.16
Rating
4.94
(507)
Projects
909
77%
Arbitration
51
35% / 33%
Overdue
361
40%
Loaded
6
Developer 6
2018.05.16
Rating
4.84
(293)
Projects
465
32%
Arbitration
36
11% / 28%
Overdue
111
24%
Working
7
Developer 7
2018.05.16
Rating
4.83
(35)
Projects
39
69%
Arbitration
5
0% / 40%
Overdue
2
5%
Working
8
Developer 8
2018.05.16
Rating
4.78
(18)
Projects
24
38%
Arbitration
5
20% / 40%
Overdue
4
17%
Working
9
Developer 9
2018.05.16
Rating
4.92
(97)
Projects
110
48%
Arbitration
22
0% / 86%
Overdue
31
28%
Free
10
Developer 10
2018.05.16
Rating
4.88
(24)
Projects
39
36%
Arbitration
4
25% / 0%
Overdue
8
21%
Loaded
11
Developer 11
2018.05.17
Rating
4.95
(74)
Projects
80
56%
Arbitration
2
0% / 100%
Overdue
2
3%
Free

Project information

Budget
50 - 150 USD
Deadlines
from 2 to 7 day(s)