internal MarginTrade(MarginTradeType type, double amount, double entry, double close, DateTime openTime, DateTime closeTime) { Type = type; Amount = amount; Entry = entry; Close = close; OpenTime = openTime; CloseTime = closeTime; }
internal Position(MarginTradeType type, double amount, double entry, DateTime time) { Type = type; Amount = amount; Entry = entry; OpenTime = time; if (type == MarginTradeType.Long) { TakeProfit = double.MaxValue; StopLoss = double.MinValue; } else { TakeProfit = double.MinValue; StopLoss = double.MaxValue; } }