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
8 changes: 5 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
Expand All @@ -35,4 +37,4 @@ jobs:
if: ${{ matrix.python-version == '3.12' }}
run: codecov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
10 changes: 10 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ The library is a single-file module with these key components:
- `<indicator>` - uses default column and window (e.g., `rsi`, `macd`)
- `<indicator>_<window>` - uses default column with custom window (e.g., `rsi_6`)
- `<column>_<window>_<indicator>` - full specification (e.g., `close_20_sma`)
- `<column>_delta` - difference from previous row (e.g., `close_delta`)
- `<left>_x_<right>` / `<left>_xu_<right>` / `<left>_xd_<right>` - cross/cross-up/cross-down between two columns
- `<left>_le_<right>`, `_ge_`, `_lt_`, `_gt_`, `_eq_`, `_ne_` - comparison operators between columns

**Column resolution order** (in `__init_not_exist_column`):
1. Check the `handler` property map (multi-column indicators like macd/macds/macdh)
2. Check for `_delta` suffix
3. Check for cross patterns (`_x_`, `_xu_`, `_xd_`)
4. Check for comparison patterns (`_le_`, `_ge_`, etc.)
5. Parse as `(column, window, name)` and dispatch to `_get_<name>` handler

**Configuration**:
- `_dft_windows` dict: default window sizes for each indicator
Expand Down
5 changes: 2 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include *.rst
include *.cfg
include *.txt
include *.toml
include *.txt
Loading