Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ time_frame: str - the time frame to get the previous high and low 15m, 1H, 4H, 1
returns:<br>
PreviousHigh = the previous high<br>
PreviousLow = the previous low<br>
BrokenHigh = 1 once price has broken the previous high of the timeframe, 0 otherwise<br>
BrokenLow = 1 once price has broken the previous low of the timeframe, 0 otherwise<br>

### Sessions

Expand Down
2 changes: 2 additions & 0 deletions smartmoneyconcepts/smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,8 @@ def previous_high_low(cls, ohlc: DataFrame, time_frame: str = "1D") -> Series:
returns:
PreviousHigh = the previous high
PreviousLow = the previous low
BrokenHigh = 1 once price has broken the previous high of the timeframe, 0 otherwise
BrokenLow = 1 once price has broken the previous low of the timeframe, 0 otherwise
"""

ohlc.index = pd.to_datetime(ohlc.index)
Expand Down