Balance for bot (#20)
* Add bot balance * Update amount to trade * fix initial trading balance * Update MM modal * fix backtest * stop bot if no more balance * Add constant for minimum trading * Add constant
This commit is contained in:
@@ -11,8 +11,6 @@ namespace Managing.Domain.MoneyManagements
|
||||
[Required]
|
||||
public Timeframe Timeframe { get; set; }
|
||||
[Required]
|
||||
public decimal BalanceAtRisk { get; set; }
|
||||
[Required]
|
||||
public decimal StopLoss { get; set; }
|
||||
[Required]
|
||||
public decimal TakeProfit { get; set; }
|
||||
@@ -25,7 +23,6 @@ namespace Managing.Domain.MoneyManagements
|
||||
{
|
||||
StopLoss /= 100;
|
||||
TakeProfit /= 100;
|
||||
BalanceAtRisk /= 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user