コード例 #1
0
ファイル: StocCross.cs プロジェクト: kbh0001/kennt-stuff
		protected override void Initialize()
		{
			var instrument = Instrument.ToString().ToUpper().Replace("DEFAULT", "").Replace(" ", "");
			_strikeWidth = NadexTwoHourBinaryStrikeWidthProvider.GetBinaryStrikeWidthFor(instrument);
			_activeOrderTracker = new MoveActiveOrderTracker();
			_activeOrderTracker.PrintFunction = Print;
			Print(string.Format("Starting for KenCandleStickStrategy {0}", Instrument));
			CalculateOnBarClose = true; //only on bar close
		}
コード例 #2
0
        protected override void Initialize()
        {
            var instrument = Instrument.ToString().ToUpper().Replace("DEFAULT", "").Replace(" ", "");

            _strikeWidth        = NadexTwoHourBinaryStrikeWidthProvider.GetBinaryStrikeWidthFor(instrument);
            _activeOrderTracker = new MoveActiveOrderTracker();
            _activeOrderTracker.PrintFunction = Print;
            Print(string.Format("Starting for KenCandleStickStrategy {0}", Instrument));
            CalculateOnBarClose = true;             //only on bar close
        }