Skip to content

Commit

Permalink
0.8.29 update (waditu#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Sep 7, 2022
1 parent 37298fb commit 611d6c0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions czsc/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
from loguru import logger
from typing import List, Callable
from collections import OrderedDict

from .enum import Mark, Direction
from .objects import BI, FX, RawBar, NewBar
from .utils.echarts_plot import kline_pro
from . import envs
from czsc.enum import Mark, Direction
from czsc.objects import BI, FX, RawBar, NewBar
from czsc.utils.echarts_plot import kline_pro
from czsc import envs

logger.disable('czsc.analyze')

Expand Down Expand Up @@ -121,7 +120,7 @@ def check_bi(bars: List[NewBar], benchmark: float = None):
return None, bars

fx_b = fxs_b[0]
for fx in fxs_b:
for fx in fxs_b[1:]:
if fx.high >= fx_b.high:
fx_b = fx

Expand Down Expand Up @@ -191,7 +190,6 @@ def __init__(self,
self.freq = bars[0].freq
self.get_signals = get_signals
self.signals = None
self.signals_list = []

for bar in bars:
self.update(bar)
Expand Down

0 comments on commit 611d6c0

Please sign in to comment.