public override void OnStart(Object sender, IStrategyOnStartArgument argument) { int turnLength = (int)this.Parameters.GetParameter(PARAMKEY_TURNLENGTH).Value; int highLowLength = (int)this.Parameters.GetParameter(PARAMKEY_HIGHLOWLENGTH).Value; this.zigzag = new Zigzag(argument.CurrentData.GetKLineData(ZigzagPeriod), turnLength, highLowLength); }
public virtual void OnStart(Object sender, IStrategyOnStartArgument argument) { if (mainKlineData == null && MainKLinePeriod != null) { mainKlineData = argument.CurrentData.GetKLineData(MainKLinePeriod); } }
public override void OnStart(object sender, IStrategyOnStartArgument argument) { klineData = argument.CurrentData.GetKLineData(period); List <int> periods = new List <int>(); periods.Add(MaPeriod); looper_ma = new Looper_Ma(klineData, periods); }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { Param_1 = (int)this.Parameters.GetParameter(PARAMKEY_MA1).Value; Param_2 = (int)this.Parameters.GetParameter(PARAMKEY_MA2).Value; Param_3 = (int)this.Parameters.GetParameter(PARAMKEY_MA3).Value; Param_4 = (int)this.Parameters.GetParameter(PARAMKEY_MA4).Value; Param_5 = (int)this.Parameters.GetParameter(PARAMKEY_MA5).Value; }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { Param_1 = (int)this.Parameters.GetParameter(0).Value; Param_2 = (int)this.Parameters.GetParameter(1).Value; Param_3 = (int)this.Parameters.GetParameter(2).Value; Param_4 = (int)this.Parameters.GetParameter(3).Value; Param_5 = (int)this.Parameters.GetParameter(4).Value; }
public override void OnStart(object sender, IStrategyOnStartArgument argument) { string name = "测试结果集-多头吞噬"; string[] titles = new string[] { "多头上涨幅度", "空头下跌幅度" }; ObjectType[] types = new ObjectType[] { ObjectType.DOUBLE, ObjectType.DOUBLE }; strategyResult = StrategyHelper.QueryResultManager.NewQueryResult(name, titles, types); }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { StrategyOperator.Trader.AutoFilter = true; //strategy_MA_1Hour = new Strategy_Ma(); //strategy_MA_1Hour.DefaultMainPeriod = KLinePeriod.KLinePeriod_1Hour; //strategy_MA_1Day = new Strategy_Ma(); //strategy_MA_1Day.DefaultMainPeriod = KLinePeriod.KLinePeriod_1Day; }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { if (ImportStrategies != null) { for (int i = 0; i < ImportStrategies.Count; i++) { ImportStrategies[i].OnStart(sender, argument); } } StrategyStart_(); }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { //this.arr_Index_Bottom.Clear(); //this.arr_Index_Top.Clear(); //this.arr_Price_Bottom.Clear(); //this.arr_Price_Top.Clear(); //this.arr_Price_SureBottom.Clear(); //this.arr_Price_SureTop.Clear(); this.turnLength = (int)this.Parameters.GetParameter(PARAMKEY_TURNLENGTH).Value; this.highLowLength = (int)this.Parameters.GetParameter(PARAMKEY_HIGHLOWLENGTH).Value; }
private void ExecuteReferStrategyStart(IStrategy strategy, IStrategyOnStartArgument argument) { strategy.OnStart(this, argument); IList <IStrategy> strategies = strategy.GetReferedStrategies(); if (strategies != null) { for (int i = 0; i < strategies.Count; i++) { IStrategy refstrategy = strategies[i]; ExecuteReferStrategyStart(refstrategy, argument); } } }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { //this.maPrice_1.Clear(); //this.maPrice_2.Clear(); //this.maPrice_3.Clear(); //this.maPrice_4.Clear(); //this.maPrice_5.Clear(); //this.topPoints.Clear(); //this.bottomPoints.Clear(); Param_1 = (int)this.Parameters.GetParameter(0).Value; Param_2 = (int)this.Parameters.GetParameter(1).Value; Param_3 = (int)this.Parameters.GetParameter(2).Value; Param_4 = (int)this.Parameters.GetParameter(3).Value; Param_5 = (int)this.Parameters.GetParameter(4).Value; }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { Param_1 = (int)this.Parameters.GetParameter(PARAMKEY_MA1).Value; Param_2 = (int)this.Parameters.GetParameter(PARAMKEY_MA2).Value; Param_3 = (int)this.Parameters.GetParameter(PARAMKEY_MA3).Value; Param_4 = (int)this.Parameters.GetParameter(PARAMKEY_MA4).Value; Param_5 = (int)this.Parameters.GetParameter(PARAMKEY_MA5).Value; //MaArr_1.Clear(); //for(int i=0; i < 1035; i++) //{ // maArr_1.Add(0); // maArr_2.Add(0); // maArr_3.Add(0); // maArr_4.Add(0); // maArr_5.Add(0); //} }
public override void OnStart(object sender, IStrategyOnStartArgument argument) { this.maPeriod = (int)this.Parameters.GetParameter(PARAMKEY_MA).Value; }
public override void OnStart(object sender, IStrategyOnStartArgument argument) { this.zigzag = new Zigzag(argument.CurrentData.GetKLineData(MainKLinePeriod)); }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { Console.WriteLine("Strategy Start"); printData.Add("Strategy Start"); }
public override void OnStart(object sender, IStrategyOnStartArgument argument) { base.OnStart(sender, argument); trader = this.StrategyHelper.Trader; trader.AutoFilter = true; }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { }
public override void OnStart(Object sender, IStrategyOnStartArgument argument) { throw new NotImplementedException(); }
public override void OnStart(object sender, IStrategyOnStartArgument argument) { this.results.Clear(); }