Example #1
0
 //量化因子处理事件
 protected virtual bool dataHandle_Event(DataTrend_Index data)
 {
     //组装消息
     if (data.IsValid && this.Quantify_Quote_Trigger != null)
     {
         Quantify_Quote_EventArgs pArgs = this.dataHandle_EventArgs(data);
         this.Quantify_Quote_Trigger(this, pArgs);
         return(true);
     }
     return(true);
 }
Example #2
0
        //数量化因子事件返回对象
        protected virtual Quantify_Quote_EventArgs dataHandle_EventArgs(DataTrend_Index data)
        {
            //组装消息
            Quantify_Quote_EventArgs pArgs = new Quantify_Quote_EventArgs(data);

            //输出信息
            //if (true)
            //{
            //    double profit = data.LabelInfo.Value_Profit;
            //    var msg = new { DataTrend = data.LabelInfo.DataTrend, DataTrend_KeyPoint = data.LabelInfo.DataTrend_KeyPoint, hitLimit = data.IsHitPoint, Value = data.Value, Ratio = data.LabelInfo.Difference_Ratio, Profit = profit };
            //    zxcConsoleHelper.Debug(true, "{0}", msg.ToString());
            //}
            return(pArgs);
        }