I mean to add a feature to locked the profits based on overall performance of portfolio. For example my overall portfolio is 50k with 25% increase. I should command the cornix to close my all trades if portfolio decreases to 45K no matter how many open trades are there. Or if my portfolio reaches to 60K then close all open trades. I recommend adding a feature that allows users to automatically lock in profits or limit losses based on the overall performance of their portfolio.
For example, if my total portfolio value is $50K with a 25% gain, I should be able to set a rule to automatically close all open trades if the portfolio drops to $45K, regardless of how many trades are active. Likewise, if the portfolio value increases to $60K, the system should close all open trades to secure the profit.
This kind of portfolio-level stop-loss and take-profit functionality would provide users with greater control and protection across their entire trading account, not just individual trades.