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); }
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 }
private void Awake() { instance = this; }
public KangarooTailDetector(ZoneDetector zoneDetector) { _zoneDetector = zoneDetector; _latestCandles = new CandleCollection(10); }