Semi-Automated Hedge Trading Strategy EA with Trading Panel for MQL4

2020.05.04 Indicators Experts

Specification

CONCEPT:

Semi-automated hedging strategy with trading panel. The hedge strategy is based on when the user places their first order, which is called the initial trade. Once the first trade is placed, a pending order is also placed simultaneously on the opposite side of the initial trade, which is called the hedged trade. There will be no stop loss. Instead, a multiplier will be implemented on the initial trade and the hedge trade. The multiplier will automatically increase the position size/volume every time the market alternates between the initial trade price level and the hedge trade price level. An Image (example.jpg) will be attached to further translate the trading strategy. I also have a mock image (trading-panel.jpg) of how I envision the trading panel to be. See all attached resources for best implementation and translation of the trading strategy .



ENTRY:

Entry on the trading panel will have buy limit, buy stop, sell limit, sell stop button input options. 


BUY LIMIT - on the trading panel, the user should be able to enter at the latest limit order, and or input the buy limit price on the trading panel if no price is inputted by the user. If the user chooses to buy at limit, the user will also have the option to set the hedge trade by price, or by pips, e.g. If the user is trading EURUSD, and places a buy limit at 1.09806, and set the hedge trade at 10 pips, then it means when the user enters into the market at 1.09806, the hedge trade will place a sell stop order at 1.09706 , 10 pips away from the buy limit price. 


SELL LIMIT - Vice versa for Buy limit, but for selling.


BUY STOP - same for Buy limit, instead, the trade will begin with a buy stop order and not buy limit order.


SELL STOP - Vice versa for Buy Stop.



POSITION MANAGEMENT

There will be no stop loss, since trades are hedged. The user will quantity, multiplier, and margin input options.


QUANTITY - User is able to input the starting lot size/volume for the initial trade


TAKE PROFIT - User should be able to set take profits in pips. 


MULTIPLIER - If the user wants to multiply the initial trade(first trade) and the hedge trade by 2, 3 ,4 etc.. e.g. If the user inputs the multiplier to be 2, then the initial trade will be 0.1 and the hedge will 0.2, and then initial trade will be 0.4 etc..


MARGIN EXIT (Margin E) -  The user should be able to input margin as a percentage of how much margin should be at risk, e.g. 10%, 50%, 90%.. If trader inputs 90%, and the margin on the account accrue at 90%, then the multiplier will stop, and both trades (initial and hedged) will exit. 


MARGIN WARNING (Margin W)  - Similar to Margin Exit. However, instead of exiting the positions on the specified margin input, the EA will give an alert when a specified input has been reached. 



EXIT STRATEGY

There should be buttons on panel to close buy, close sell, and close all trades (initial and hedged trade)


See attached trading panel image. 


Accrued specified margin will also exit both initial trade and hedged trade. 

MARGIN EXIT (Margin E) -  The user should be able to input margin as a percentage of how much margin should be at risk, e.g. 10%, 50%, 90%.. If trader inputs 90%, and the margin on the account accrue at 90%, then the multiplier will stop, and both trades (initial and hedged) will exit. 



ALL INPUTS - BUTTONS, AND DISPLAYS FOR TRADING PANEL 

BUY STOP: Initial (by price) - Hedged (by price) - Hedged ( in pips) - Initial TP (in pips) - Hedged TP ( in pips) 

SELL LIMIT: Initial (by price) - Hedged (by price) - Hedged ( in pips) - Initial TP (in pips) - Hedged TP ( in pips) 

BUY LIMIT: Initial (by price) - Hedged (by price) - Hedged ( in pips) - Initial TP (in pips) - Hedged TP ( in pips) 

SELL STOP: Initial (by price) - Hedged (by price) - Hedged ( in pips) - Initial TP (in pips) - Hedged TP ( in pips) 


CLEAR PENDING ALL

CLEAR TP


QT(Quantity/Volume)

MARGIN W (Margin Warning)

MARGIN E (Margin Exit)

Multiplier


CLOSE ALL

CLOSE ALL BUY

CLOSE ALL SELL



SUM ALL (Display sum of buy and sell profit)

SUM BUY (Display only buy profit)

SUM SELL (Display only sell profit)


MARGIN (Display current margin usage)

SPREAD ( Display current spread)














Files:

JPG
example.jpg
69.9 Kb

Responded

1
Developer 1
2020.05.05
Rating
4.9
(628)
Projects
825
40%
Arbitration
43
5% / 53%
Overdue
138
17%
Working
2
Developer 2
2020.05.05
Rating
5
(120)
Projects
139
45%
Arbitration
2
50% / 50%
Overdue
3
2%
Free
3
Developer 3
2020.05.05
Rating
4.93
(359)
Projects
561
42%
Arbitration
33
24% / 45%
Overdue
47
8%
Loaded
4
Developer 4
2020.05.05
Rating
4.91
(205)
Projects
254
50%
Arbitration
11
36% / 27%
Overdue
6
2%
Working
5
Developer 5
2020.05.05
Rating
4.83
(401)
Projects
702
49%
Arbitration
224
54% / 29%
Overdue
140
20%
Busy
6
Developer 6
2020.05.05
Rating
5
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
2020.05.05
Rating
4.88
(181)
Projects
407
52%
Arbitration
43
44% / 35%
Overdue
204
50%
Working
8
Developer 8
2020.05.05
Rating
5
(3)
Projects
3
0%
Arbitration
1
0% / 0%
Overdue
1
33%
Loaded
9
Developer 9
2020.05.05
Rating
3.67
(3)
Projects
2
0%
Arbitration
7
0% / 86%
Overdue
1
50%
Free
10
Developer 10
2020.05.08
Rating
4.86
(56)
Projects
124
32%
Arbitration
7
14% / 71%
Overdue
32
26%
Working
11
Developer 11
2020.05.16
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
100 - 250 USD
For the developer
90 - 225 USD
Deadlines
to 8 day(s)