I already know how to write scale-out code using plain AFL as shown in the user manual examples. However, my program needs to use the custom backtester to calculate the proper position size.
Does anyone know how to implement scale-out using custom backtester? My goal is quite simple: exit half of the position 5 days after entry, and exit the rest of the position using a percentage trailing stop. If anyone can provide me with some example code, that would be greatly appreciated,
