public void AddAdjustment_KrxCreditDepositRate(int key, IAdjustment nextAdj, double weight) { //ICreditPolicy policy = new CreditPolicyStatic(); ICreditPolicy policy = new CreditPolicyWithMA(weight); this._adjustment = new KrxCreditDepositRateAdjustment(policy); this._adjustment.SetKey(key); this._adjustment.SetNextAdjustment(nextAdj); this._opSet.Add(new OperationRow(key, "KrxCreditRate", Operation.Multiply, true)); }
public void AddAdjustment_WithMA(int key, IAdjustment nextAdj, double weight) { ICreditPolicy policy = new CreditPolicyWithMA(weight); this._adjustment = new KrxCreditDepositRateAdjustment(policy); this._adjustment.SetKey(key); this._adjustment.SetNextAdjustment(nextAdj); this._opSet.Add(new OperationRow(key, String.Format("WithMA({0:n2})", weight), Operation.Multiply, true)); }