Const// Final targets: TP at +10%, SL at -5%
listenPartialProfit(async (event) => {
// event.level emits: 10, 20, 30, 40, 50...
if (event.level === Constant.TP_LEVEL1) { await close(33); } // at +3% profit
if (event.level === Constant.TP_LEVEL2) { await close(33); } // at +6% profit
if (event.level === Constant.TP_LEVEL3) { await close(34); } // at +9% profit
});
Global singleton instance of ConstantUtils. Provides static-like access to predefined trading level constants.
Kelly-optimized scaling strategy: Profit side (pyramiding out):
Loss side (damage control):