工作已完成
指定
I would like to create a tool to manage manually opened positions.
So, the expert is attached to a certain chart, and every manually opened trade of that asset is automatically managed.
WINNING POSITIONS
when the manually opened positions go to the right direction, meaning they generating profits:
1. half of the position gets closed at a certain number of pips.
Each trade is managed indipendently. example: suppose there are 2 trades, opened at different prices, running in profit: trade “a“ is 1 lot, trade “b” is 2 lots. When trade “a” reaches 20 pips (amount setted in the settings) then half of the position is closed (0.5 lots) and the other half is left open. Since “a” and “b” were opened at different prices, at 20 pips only “a” is closed in half and not “b” which will be managed with the same method.
2. the remaining half of the position is managed with a trailing stoploss.
Even in this case, every opened position is managed indipendently
LOSING POSITIONS
when the manually opened positions go to the wrong direction, meaning DD is happening:
1. all positions are closed when a certain amount of floating loss is happening (absolute amount, not %)