I need a panel for the jForex platform (Dukascopy) to manage and have an easy overview of trades.
As shown int the attached image:
-Buy and Sell buttons should open trades at market
-Pending BUY/SELL button to open pending order at price set in the gray field below
-Close BUY/Sell buttons should close all BUY/SELL positions (open and pending)
-Close ALL button should close all, buy and sell positions (open and pending)
Note: after a position is opened, if it is a buy, this first position and all the following buy positions should be considered as a BUY group, regarding TP and SL. So the initial tp and initial sl values should be set by user but only for the first position of the group, the other TPs and SLs should be place at the same price levels as the first one regardless of the initial setting. If the TP or SL for the first position were dragged to a new level all the other TP/SL of the group have to follow to the same price levels. If a new position is added to the group after such a dragging adjust, this new position should have its TP/SL placed on the new (dragged) price levels. If a pending position is placed its TP/SL should follow the same rules. The group and its behavior should remain like this until the Close BUY/SELL or Close ALL button is hit, or either TP or SL is hit, starting over again on the next position opening.
-Initial TP is set by user and should be the initial take profit in pips for the first position.
-Initial SL is set by user and should be the stop loss in pips for the first position
-Lot size: set by user
-Positions should display the number of open trades
-P/L should display the profit/loss for the current instrument, displayed in pips and currency
This panel should be active for all and only the position of the current instrument (chart), it must be possible to open other panel instances on other charts.