仕事が完了した
指定
The Ea should have a onscreen option to take BUY or sell based on % of Equity in the account.
I need a basket
trading EA made to help manage my open trades.
The screen the Ea goes on should also show the current Baskets open and current PNL and pips to break even.
Extern
options
-First trade settings
Level TP happens for first order (before a hedge has triggered)
If
trade moves x Pips in profit move Stop Loss to Break even + X pips
% equity calculation to take first trade before any hedging has
happend(this will auto calculate for trades from trade manage on screen) ie Equity /$1000 on a $2,000 account is 2 Lots
- Manual
trades when hedge is at play
New trade position size (New manual trade) after we are hedged should be of equal lot size to the hedge - ie IF
LAST basket is 1 Lot Short and 1 Lot Long new trade should default to 2 Lots.
- Hedge externs
X pips till Hedge opens
Close
Baskets at Break even (on/off)
Close basket at BE + X pips
hedge ratio of trade - default 100 (equal value to other
position) For example if the postion that needs to be hedged is 1 X LOT Short would get 1 x Lot Long if set to 100
pips till 1 - 1 hedge is
opened - ie IF 1 lot SHORT and trade hits X pips at a Loss Open LONG of = size lots. When hedge is opened all SL & TP should be removed from the
initial trade.
I will then go to open my next trade manually - These 3 postions will be defined as Basket 1.
IF basket goes into Break even close down Basket 1.
IF new trade goes into loss by X pips open Basket 2 by opening 1 - 1 Hedge with trade 3 and retag trade 3 & 4 as Basket 2
IF accounts go to Break even close down ALL BASKETS
If new trade goes into loss by x pips open basket 3 by opening 1 - 1 hedge with trade 4 and open Basket 3.
Rinse and repeat for 12 baskets.
Code will remain my IP and mql files should be clearly noted to make future modifications clear for who ever codes it.