コード例 #1
0
        protected override double calcRefData(string code)
        {
            double ratio = 0.0;

            if (!PriceAnalyzer.getPriceScaleFromDate(code, m_beginDate, out ratio))
            {
                return(0.0);
            }
            return(ratio);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public virtual void init(string stockID, string beginDate, string endDate)
 {
     m_code = stockID;
     PriceAnalyzer.getLowestPriceBetweenDate(m_code, beginDate, endDate, out m_lowestPrice);
 }