I need a Trade assistant with GUI. I should be able to enter %risk or amount risk as input on the GUI and have lines displayed on the screen to place trades by moving lines for entry, TP, SL and clicking. The lines should have handles to drag and move so that I don't have to precisely click on a small line. There should be a third line in addition serving as a "Marker" for multiple orders. 'N' orders should be placed between the entry and the "Marker" with risk equally divided across N orders, where N is given as input in GUI. The entry line should have a "Place" button to click which places the trade. (See figure) A shading should be applied between Entry and SL, and a different shading between Entry and TP Candles should be visible on top of the shaded areas of SL and TP Once a trade is placed, the EA should remember the SL and TP levels and for any future trades that are placed, the same SL and TP levels should be the default levels for the future. If there is only one order (N=1), it will be placed at the location of "Place" line and "Marker" line is not displayed. I need a Close% button to close any given percentage of the CURRENT PROFIT/LOSS. The percentage is given as input. (See figure) The close% button should work in the following manner: Say the percentage specified is x. The EA should sort all the orders according the drawdown/profit in PIPS (not USD). Assume the entries 1,2,3,4... are in sorted order now i.e 1 has more drawdown in pips than 2, 2 more drawdown in pips than 3 etc.. . First K orders of 1,2,3.. will be FULLY closed and (K+1)th order will be partially closed causing x% of current profit/loss to be secured. The sorting of the orders according to drawdown/profit in pips should be done beforehand. A sorted array should be maintained containing all the orders. Anytime a new order is placed, this array is updated. When Close % button is pressed, this sorted array can be accessed without needing to spend time sorting. percprof= x*OpenProfit/100; K=0 for i=1:totalorders { partprof = sum(profit_j); %%%j goes from 1 to i; profit_j is the profit of the entry_j if partprof>percprof { break; } K=K+1; } diff = percprof-partprof x2= diff*100/profit_(K+1) Now orders 1 to K and x2% of the order K+1 need to be closed. Ignore (K+1) if x2 is less than 1%. The closing need to be done in the following order: Sort (orders 1 to K, x2%(K+1)size) according to lot size. Then close order with largest size first, smallest last. I need a "Modify TP" functionality with a percentage input. Say x3% is specified. Then I should be able to place TP for x3% of the orders (% in profit) at the "Modify TP" line. Say the TP line is at location L ProfitatL = sum((entry_i_location - L)*size_i*price_per_point);% i goes across all entries. percprof= x*ProfitatL/100; K=0 for i=1:totalorders %orders are sorted according to profit in pips.. 1 has least profit in pips, 2 has more pips than 1, 3 has more pips than 3 { partprof = sum((entry_j - location)*size_j*price_per_point); %%%j goes from 1 to i K=K+1; if partprof>percprof { K=K-1 break; } } %place TP at location L for orders 1 to K (See figure for illustration) I need a similar modify SL option, similar to above, but SL is modified for all orders with out any percentage selection. All the functionalities shown in the figure should be implemented including the numbers appearing on the handles of lines. I would need the complete source code. An example of similar EA is https://www.mql5.com/en/market/product/30750?source=External