private Boolean EvaluatePattern(MarketPatternFinder.TickDirection tickDirection, Decimal now, Decimal previous) { Boolean ret = false; switch (tickDirection) { case MarketPatternFinder.TickDirection.Up: if (now > previous) return true; break; case MarketPatternFinder.TickDirection.Down: if (now < previous) return true; break; case MarketPatternFinder.TickDirection.NoChange: if (now == previous) return true; break; } return ret; }
private void EditPattern() { MarketPatternFinder fMarketPatternFinder = new MarketPatternFinder(_PatternSearch); Application.Run(fMarketPatternFinder); _PatternSearch = fMarketPatternFinder.getMarketPatten(); }