Skip to content

Commit

Permalink
Minor changes and spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinR committed Sep 27, 2023
1 parent 3016a55 commit 57d1d1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hexital/analysis/patterns.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List, Optional

from hexital.analysis import movement, utils
from hexital.analysis import utils
from hexital.core.candle import Candle


Expand All @@ -19,7 +19,7 @@ def doji(
candles (List[Candle]): Candles to use to find Doji Candle
length (int, optional): Check for the average. Defaults to 10.
lookback (Optional[int], optional): Lookback allows detecting ant Doji candles N back. Defaults to None.
asint (bool, optional): Use Intergers or Bools. Defaults to False.
asint (bool, optional): Use Integers or Bools. Defaults to False.
index (_type_, optional): Index of Candle to check. Defaults to None/Latest.
Returns:
Expand Down
1 change: 0 additions & 1 deletion hexital/core/indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
@dataclass(kw_only=True)
class Indicator(ABC):
candles: List[Candle] = field(default_factory=list)
indicator_name: str = None
fullname_override: str = None
name_suffix: str = None
round_value: int = 4
Expand Down
2 changes: 1 addition & 1 deletion hexital/lib/candle_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def collapse_candles_timeframe(candles: List[Candle], timeframe: str, fill: bool
while candles:
candle = candles.pop(0)

# If current candle before the lastest collapsed candle
# If current candle before the latest collapsed candle
if start_timestamp + timeframe_delta > candle.timestamp:
start_timestamp = round_down_timestamp(candle.timestamp, timeframe_delta)

Expand Down

0 comments on commit 57d1d1c

Please sign in to comment.