Skip to content

feat: add pandas_to_ohlc() for OHLC DataFrame conversion (closes #15)#34

Merged
GregoryMorse merged 1 commit into
masterfrom
feature/issue-15-pandas-to-ohlc
Apr 9, 2026
Merged

feat: add pandas_to_ohlc() for OHLC DataFrame conversion (closes #15)#34
GregoryMorse merged 1 commit into
masterfrom
feature/issue-15-pandas-to-ohlc

Conversation

@GregoryMorse
Copy link
Copy Markdown
Owner

pandas_to_ohlc(df, low_col, high_col, close_col) converts any OHLC pandas DataFrame (yfinance, ccxt, or custom column names) to the (low, high) tuple expected by calc_support_resistance, get_extrema, and the plot functions. Column names are auto-detected case-insensitively when not specified. Pass df.index as idx to plot_sup_res_date for date-formatted x-axis labels.

pandas_to_ohlc(df, low_col, high_col, close_col) converts any OHLC pandas
DataFrame (yfinance, ccxt, or custom column names) to the (low, high) tuple
expected by calc_support_resistance, get_extrema, and the plot functions.
Column names are auto-detected case-insensitively when not specified.
Pass df.index as idx to plot_sup_res_date for date-formatted x-axis labels.
@GregoryMorse GregoryMorse merged commit 25ab4bf into master Apr 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant