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:
@@ -9,7 +9,6 @@ using Managing.Core;
|
||||
using Managing.Domain.Candles;
|
||||
using Managing.Domain.MoneyManagements;
|
||||
using Managing.Domain.Scenarios;
|
||||
using MongoDB.Driver.Linq;
|
||||
using Moq;
|
||||
using Newtonsoft.Json;
|
||||
using Xunit;
|
||||
@@ -115,7 +114,6 @@ namespace Managing.Application.Tests
|
||||
|
||||
var moneyManagement = new MoneyManagement()
|
||||
{
|
||||
BalanceAtRisk = 0.05m,
|
||||
Leverage = 1,
|
||||
Timeframe = timeframe,
|
||||
StopLoss = 0.01m,
|
||||
@@ -179,7 +177,6 @@ namespace Managing.Application.Tests
|
||||
{
|
||||
var moneyManagement = new MoneyManagement()
|
||||
{
|
||||
BalanceAtRisk = 0.05m,
|
||||
Leverage = 1,
|
||||
Timeframe = timeframe,
|
||||
StopLoss = s,
|
||||
@@ -293,7 +290,6 @@ namespace Managing.Application.Tests
|
||||
{
|
||||
var moneyManagement = new MoneyManagement()
|
||||
{
|
||||
BalanceAtRisk = 0.05m,
|
||||
Leverage = 1,
|
||||
Timeframe = timeframe,
|
||||
StopLoss = s,
|
||||
|
||||
Reference in New Issue
Block a user