工作已完成
指定
Hello I would like a hedging EA with a created dashboard on the chart screen. The dashboard should look like the one attached (doesn't have to be exact) and along side with it two buttons for buying and selling with lot size calculated from the program already.
Calculated lot size:
1) Percent Factor = 2.5%
2) Pre-determined lot sizes = 1.4, 1.0, 1.4, 1.9, etc.
Hedging:
1) Initiation Gap (pips from entry where EA is activated)
2) TP (Sets tp for original and all new open orders, if there is one set already for original modify it to this take profit).
Trailing stop ON/OFF (step -- moves in favor of trade "5" steps/pips, moves SL up trailing distance)
1) Initial SL set from profiting trades
2) Trailing distance
3) Step
**if trailing is on, When the set of trades reaches a tp, close out hedged opposing trades and keep all trades in favor open. Modify all SL to initial SL from where tp level. If trade moves up a certain step points, move sl distance points.
Notes:
*All first trades are opened by me, the EA only opens the sell and buy stops according to gaps and lot sizes
*On the dashboard I should be able to open trades with calculated lot size with the push of a button. Lot size = (Account Balance()*percent)/100). So if Account balance is $1000, calculated lot should be .25.
*As soon as a trade is opened, EA will put opposing stop order immediately according to the initiation gap points in opposite direction of order. The lot size for that pending order should be the first number in "pre determined lot size" multiplied by it. So if put a Buy order at 1.95555 @ 1 lot with 5 pip initiation , sell stop pending will be placed @ 1.95505 with 1.4 lots. If the sell stop is activated TP for all trades current and future is set to tp level in parameters and now a buy stop pending is placed at original 1.95555 @ 1 lot (2nd multiple in parameters). It goes on until it hits a TP level. Once a TP level is hit, if Trailing stop is off close all orders. If trailing stop is on, and the tp was from the buy orders created, close all sell orders and set sl for all buys at initial SL and start trailing stop function. (vice versa for sell tp of course)
There are no Stop losses only opening of orders and modifying/closing them. There Maximum amount of trades opened is determined by how many pre-determined lot sizes i input. if theres 5 numbers, the EA will only create 5 orders max and let the open positions run until it hits a TP and the rest is the same as before.
Thank you all (: