Just wondering if you have code for a partial stoploss or % stoploss?
in the case of a losing trade.
when loss reaches -10 pips - close 10% of original lot size,
when loss reaches -20 pips - close 20% of original lot size,
when loss reaches -30 pips - close 30% of original lot size,
scaled to 100% stoploss.