Hello Trader!
I have a little code problem.
It’s about the placement of a stop loss and take profit.
In detail I want to place the Stop Loss e.g. on the level of a moving Averages or e.g. on the low of the last x periods. The take profit order, on the other hand, should be placed in relation to the stop loss.
Classically, for example, the take profit should be 2 times the stop loss to achieve a ratio of 1:2 for each trade.
Placing the stop loss is not a problem for me, but I am not able to program the take profit accordingly.
I am grateful for any help 😀