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.92
(156)
Projects
257
63%
Arbitration
6
33% / 0%
Overdue
108
42%
Loaded
4
Developer 4
2018.05.16
Rating
4.99
(161)
Projects
177
25%
Arbitration
10
20% / 60%
Overdue
49
28%
Loaded
5
Developer 5
2018.05.16
Rating
4.94
(514)
Projects
917
77%
Arbitration
56
34% / 34%
Overdue
365
40%
Working
6
Developer 6
2018.05.16
Rating
4.86
(333)
Projects
532
32%
Arbitration
39
13% / 28%
Overdue
128
24%
Loaded
7
Developer 7
2018.05.16
Rating
4.83
(75)
Projects
83
47%
Arbitration
10
10% / 50%
Overdue
3
4%
Working
8
Developer 8
2018.05.16
Rating
4.84
(25)
Projects
40
43%
Arbitration
9
33% / 22%
Overdue
5
13%
Working
9
Developer 9
2018.05.16
Rating
4.9
(102)
Projects
118
46%
Arbitration
25
0% / 84%
Overdue
32
27%
Working
10
Developer 10
2018.05.16
Rating
4.89
(27)
Projects
47
32%
Arbitration
4
25% / 0%
Overdue
10
21%
Working
11
Developer 11
2018.05.17
Rating
4.95
(81)
Projects
89
52%
Arbitration
3
33% / 67%
Overdue
2
2%
Free

Project information

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