Rename finalPnl to netPnl in tradinbox for ROI
This commit is contained in:
@@ -798,9 +798,9 @@ public static class TradingBox
|
||||
return candle2.Close * 100 / candle1.Close - 100;
|
||||
}
|
||||
|
||||
public static decimal GetGrowthFromInitalBalance(decimal balance, decimal finalPnl)
|
||||
public static decimal GetGrowthFromInitalBalance(decimal balance, decimal netPnl)
|
||||
{
|
||||
var growth = balance + finalPnl;
|
||||
var growth = balance + netPnl;
|
||||
|
||||
return growth * 100 / balance - 100;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user