protected override void OnMouseEnter(MouseEventArgs e)
        {
            //this.UpdateZone(this.GetZone(e.GetPosition(this)));
            BookZone bz = ZoneDetector.GetZone(this.RenderSize, this.FoldSize, e.GetPosition(this), this.Orientation);

            this.UpdateZone(bz);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var zoneDetector = new ZoneDetector();

            var detector = new KangarooTailDetector(zoneDetector);
            detector.Start();

            var firstCandle = new Candle();
            detector.AddNewCandle(firstCandle);

            var secondCandle = new Candle();
            detector.AddNewCandle(secondCandle);
        }
Exemple #3
0
        static void Main(string[] args)
        {
            var zoneDetector = new ZoneDetector();

            var detector = new KangarooTailDetector(zoneDetector);

            detector.Start();

            var firstCandle = new Candle();

            detector.AddNewCandle(firstCandle);

            var secondCandle = new Candle();

            detector.AddNewCandle(secondCandle);
        }
 public BigShadowDetector(ZoneDetector zoneDetector)
 {
     _zoneDetector = zoneDetector;
     _latestCandles = new CandleCollection(5); // store last 5 candle // better > 10 candlestick
 }
Exemple #5
0
 private void Awake()
 {
     instance = this;
 }
 public KangarooTailDetector(ZoneDetector zoneDetector)
 {
     _zoneDetector = zoneDetector;
     _latestCandles = new CandleCollection(10);
 }
 public BigShadowDetector(ZoneDetector zoneDetector)
 {
     _zoneDetector  = zoneDetector;
     _latestCandles = new CandleCollection(5); // store last 5 candle // better > 10 candlestick
 }
Exemple #8
0
 public KangarooTailDetector(ZoneDetector zoneDetector)
 {
     _zoneDetector  = zoneDetector;
     _latestCandles = new CandleCollection(10);
 }