Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        private void EditPattern()
        {
            MarketPatternFinder fMarketPatternFinder = new MarketPatternFinder(_PatternSearch);
            Application.Run(fMarketPatternFinder);

            _PatternSearch = fMarketPatternFinder.getMarketPatten();
        }