""" """ import unittest from coverage.stream import testindicator, tBar from market.pattern.generics import * #---------------------------------------------------------------------- gap_up_test = testindicator(__name__, "gap_up_test", #---------------------------------------------------------------------- Recognizer, ( ((tBar(96.00, 97.45, 94.00, 96.19, 715897),), (False,)), ((tBar(97.21, 101.22, 97.20, 101.00, 129762),), (False,)), ((tBar(101.97, 104.30, 101.51, 103.46, 311210),), (True,)), ((tBar(97.00, 97.00, 93.07, 96.00, 95891),), (False,)), ((tBar(95.34, 97.52, 92.02, 97.25, 242829),), (False,)), ((tBar(97.77, 99.50, 97.77, 97.85, 321915),), (True,)), ((tBar(98.60, 99.50, 96.00, 97.05, 210585),), (False,)), ((tBar(95.09, 96.32, 91.22, 96.00, 50564),), (False,)), ((tBar(94.60, 95.30, 94.13, 95.20, 80697),), (False,)), ((tBar(95.52, 96.82, 95.51, 96.00, 198607),), (True,)), ((tBar(96.59, 98.50, 94.69, 97.51, 88992),), (False,)), ((tBar(98.95, 99.00, 96.61, 97.51, 22776),), (False,)), ), pattern=gap_up) #---------------------------------------------------------------------- gap_down_test = testindicator(__name__, "gap_down_test", #---------------------------------------------------------------------- Recognizer, (
""" """ import unittest from coverage.stream import testindicator, tBar from market.pattern.candles import * #---------------------------------------------------------------------- doji_test = testindicator(__name__, "doji_test", #---------------------------------------------------------------------- Recognizer, ( ((tBar(12.00, 12.00, 11.70, 11.70, 6600),), (False,)), ((tBar(11.70, 12.87, 9.30, 11.60, 65200),), (False,)), ((tBar(11.50, 11.70, 11.30, 11.50, 2600),), (True,)), ((tBar(11.06, 11.20, 11.06, 11.20, 2800),), (False,)), ((tBar(10.89, 10.89, 10.89, 10.89, 800),), (False,)), ((tBar(11.01, 11.10, 10.00, 11.01, 900),), (True,)), ((tBar(11.79, 11.79, 11.79, 11.79, 100),), (False,)), ((tBar(11.39, 11.39, 11.26, 11.26, 400),), (False,)), ((tBar(12.10, 12.10, 10.31, 10.55, 251800),), (False,)), ((tBar(17.00, 17.75, 17.00, 17.00, 10100),), (False,)), ((tBar(16.20, 16.45, 16.00, 16.20, 3300),), (True,)), ((tBar(16.00, 17.00, 15.80, 16.99, 9800),), (False,)), ((tBar(15.80, 15.80, 15.80, 15.80, 6400),), (False,)), ((tBar(17.99, 18.00, 17.50, 17.99, 100),), (True,)), ((tBar(14.83, 15.06, 14.80, 15.00, 14500),), (False,)), ((tBar(14.50, 14.50, 14.50, 14.50, 200),), (False,)), ((tBar(14.75, 14.75, 14.75, 14.75, 300),), (False,)), ), pattern=doji)