public void InitializeDCA(double openValue, double probableMin, double amount, int stepCount, double startAmountPc, double endAmountPc) { DCAInfo = new OrderGridInfo(); DCAInfo.Start.AmountPercent = 30; DCAInfo.Start.Value = openValue; DCAInfo.End.AmountPercent = 90; DCAInfo.End.Value = probableMin; DCAInfo.LineCount = stepCount; DCAInfo.Normalize(); DCATotalAmount = amount; }
protected virtual void InitializeOrderGrid() { OrderGridInfo info = new OrderGridInfo(); info.Start.Value = 10; info.Start.AmountPercent = 1; info.End.Value = 20; info.End.AmountPercent = 2; info.LineCount = 1; info.Normalize(); OrderGrid = info; }