public PointFigureBars(SymbolInfo symbolInfo, long boxSize, long reversal)
 {
     this.minimumTick = symbolInfo.MinimumTick.ToLong();
     this.boxSize     = boxSize * minimumTick;
     this.reversal    = reversal;
     IntervalDefault  = Intervals.Define(BarUnit.Tick, 100);
 }
示例#2
0
        public void TestEmptyMethods()
        {
            Strategy logic = new Strategy();

            logic.OnEndHistorical();

            if (logic.OnIntervalOpen(Intervals.Define(BarUnit.Minute, 1)))
            {
                Assert.Fail("NotImplementedException expected");
            }

            if (logic.OnIntervalClose(Intervals.Define(BarUnit.Minute, 1)))
            {
                Assert.Fail("NotImplementedException expected");
            }
        }
示例#3
0
		public SRRetraceHourly()
		{
			ExitStrategy.ControlStrategy  = false;
			IntervalDefault = Intervals.Define(BarUnit.Change,50);
		}