Want to automate order entry for AntiMartingale order strategy

MQL5 Design

Specification

Greetings,

I am looking for help to program an automated order entry using an AntiMartingale strategy. I will identify (manually) a channel high and channel low and these are the initial entry to points to the long and short side respectively. I anticipate a breakout above or below these levels. I wish to place multiple trades layered above and below these entry points. 

For example if the EUR-USD is in a trading range between 1.2237 and 1.2214 I wish to enter orders as follows:

Buy stop 1.2237, stop loss 1.2217, take profit 1.2262 (25 pip take profit and 20 pip stop loss)

Buy stop 1.2237, trailing stop 20 pips

Then another pair 2 pips above that...

Buy stop 1.2239, stop loss 1.2219, take profit 1.2264 (25 pip take profit and 20 pip stop loss)

Buy stop 1.2239, trailing stop 20 pips

And so on adding another pair every 2 pips until I get to 

Buy stop 1.2265, stop loss 1.2245, take profit 1.2290 (25 pip take profit and 20 pip stop loss)

Buy stop 1.2265, trailing stop 20 pips

And then I want to enter mirroring trades on the short side

Sell stop 1.2214, stop loss 1.2234, take profit 1.2189 (25 pip take profit and 20 pip stop loss)

Sell stop 1.2214, trailing stop 20 pips

Then another pair 2 pips below that...

Sell stop 1.2212, stop loss 1.2232, take profit 1.2187 (25 pip take profit and 20 pip stop loss)

Sell stop 1.2212, trailing stop 20 pips

And so on adding another pair every 2 pips until I get to 

Sell stop 1.2186, stop loss 1.2206, take profit 1.2161 (25 pip take profit and 20 pip stop loss)

Sell stop 1.2186, trailing stop 20 pips

I would like each order on the buy side to be OCO with the matching order on the sell side, to reduce the effect of whipsaws. 

The variables that would have to be entered manually would be 

Instrument - for example, EUR-USD

Lot size

Channel High - this is the price level for the first two buy stop orders

Channel Low - this is the price level for the first two sell stop orders

This is not going to be used on autotrade or as a trading robot because I need the subjective element to judge the channel high and low. 

I would like these orders uploaded directly to the platform as MT5 pending orders. 

Preferably I would like to have a time setting so that if the trade isn't entered within a certain amount of time, the orders are all cancelled. 

I hope this is clear. Please let me know if further information can be provided for additional clarification. 

Responded

1
Developer 1
Rating
(320)
Projects
466
42%
Arbitration
78
12% / 63%
Overdue
75
16%
Working
2
Developer 2
Rating
(258)
Projects
395
28%
Arbitration
69
19% / 49%
Overdue
120
30%
Free
3
Developer 3
Rating
(42)
Projects
70
43%
Arbitration
6
33% / 50%
Overdue
19
27%
Free
4
Developer 4
Rating
(46)
Projects
73
16%
Arbitration
13
8% / 92%
Overdue
37
51%
Free
5
Developer 5
Rating
(28)
Projects
47
23%
Arbitration
13
31% / 15%
Overdue
12
26%
Free
6
Developer 6
Rating
(219)
Projects
370
42%
Arbitration
145
17% / 41%
Overdue
124
34%
Free
7
Developer 7
Rating
(586)
Projects
1045
49%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
8
Developer 8
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
9
Developer 9
Rating
(14)
Projects
22
59%
Arbitration
2
0% / 50%
Overdue
2
9%
Free

Project information

Budget
50 - 100 USD
For the developer
45 - 90 USD