Fix % formating for SL TP

This commit is contained in:
2025-10-12 01:13:00 +07:00
parent c022c725a2
commit 7ddde08b98
4 changed files with 252 additions and 15 deletions

View File

@@ -22,7 +22,15 @@ public class LightMoneyManagement
public void FormatPercentage()
{
StopLoss /= 100;
TakeProfit /= 100;
// Only format if values are in percentage form (>= 1), not already in decimal form (< 1)
if (StopLoss >= 1)
{
StopLoss /= 100;
}
if (TakeProfit >= 1)
{
TakeProfit /= 100;
}
}
}