Fix % formating for SL TP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user