protected override double calcRefData(string code) { double ratio = 0.0; if (!PriceAnalyzer.getPriceScaleFromDate(code, m_beginDate, out ratio)) { return(0.0); } return(ratio); }
public override bool filterMethod(string stockID) { StockMarketData md = StockDataCenter.getInstance().getMarketData(stockID); if (md != null && PriceAnalyzer.isPriceScaleSatisfied(stockID, md.latestPrice, m_ratio)) { return(true); } return(false); }
public virtual void init(string stockID, string beginDate, string endDate) { m_code = stockID; PriceAnalyzer.getLowestPriceBetweenDate(m_code, beginDate, endDate, out m_lowestPrice); }