public ExpertAdvisor CreateExpertAdvisor(AdvisorType advisorType, MqlApi api) { switch(advisorType) { case AdvisorType.Scalper: return new ScalperAdvisor(api); default: throw new InvalidEnumArgumentException(string.Format("Invalid advisor type:{0}", advisorType)); } }
public ExpertAdvisor CreateExpertAdvisor(AdvisorType advisorType, MqlApi api) { switch (advisorType) { case AdvisorType.Scalper: return(new ScalperAdvisor(api)); default: throw new InvalidEnumArgumentException(string.Format("Invalid advisor type:{0}", advisorType)); } }
public TermPaperAdvisor(AdvisorType advisorType, TermPaper termPaper, Advisor advisor) { AdvisorType = advisorType; TermPaper = termPaper; Advisor = advisor; }