Trabajo finalizado
Tarea técnica
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)