Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Tags: PyneSys/pynecore

Tags

v6.3.4

Toggle v6.3.4's commit message
fix(core): ensure compatibility with Python < 3.12 for Buffer import

Use try/except to import Buffer from collections.abc, falling back to bytes
for older Python versions where Buffer is unavailable. This improves
backwards compatibility of ohlcv_file.py.

v6.3.3

Toggle v6.3.3's commit message
fix(tests): ensure import hook is registered before pynecore imports

Register the import hook at the top of conftest.py to guarantee AST
transformations work, even if __pycache__ is deleted. This change
prevents issues with module imports during test execution.

v6.3.2

Toggle v6.3.2's commit message
fix(strategy): use prefixed order IDs to avoid entry/exit collisions

- Add "entry_" and "exit_" prefixes to order IDs in position.orders to
  prevent collisions between entry and exit orders.
- Update all logic for adding, removing, and accessing orders to use
  the new prefixed keys.
- Adjust commission handling and order deletion to account for prefixed
  IDs.

v6.3.1

Toggle v6.3.1's commit message
fix: resolve order leak in position direction change and implement tr…

…ailing stop

- Fix critical bug where orders were not deleted from orders dict when position fully closed during direction change
- Add 'and new_size != 0.0' condition to prevent unnecessary split when closing to zero position
- Implement complete trailing stop functionality with trail_price and trail_offset parameters
- Add trailing stop activation and dynamic stop price updates based on high/low movements
- Enhance Order class with trail_price, trail_offset, and trail_triggered attributes
- Update exit() function to support trailing stop parameters
- Add _check_close() method for trailing stop execution at close price
- Improve price rounding logic to avoid unnecessary rounding when price is already at tick level
- Update check methods to use 'is None' instead of falsy checks for proper None comparison
- Add trailing stop support in both high and low price checks for long and short positions

v6.3.0

Toggle v6.3.0's commit message
chore: bump version to 6.3.0

v6.2.1

Toggle v6.2.1's commit message
feat(docs): update community links and add Reddit support

- Added Reddit and Discussions links to pyproject.toml social section
- Updated ecosystem.md to include Reddit and reorder community links
- Bumped version to 6.2.1 in pyproject.toml

v6.1.2

Toggle v6.1.2's commit message
fix: improve error messages and allow plot calls from plotchar function

v6.1.1

Toggle v6.1.1's commit message
feat: add file format detection to OHLCVReader

Prevents CSV files renamed to .ohlcv from being read as binary data.
Detects text files by attempting ASCII decode of first 32 bytes and
shows clear error message with CLI conversion command when detected.

v6.1.0

Toggle v6.1.0's commit message
feat: rename equity_path to trade_path and fix strategy statistics

Breaking changes:
- Rename equity_path parameter to trade_path in ScriptRunner and CLI
- Change CLI flags from --equity/-ep to --trade/-tp
- Update default filename from _equity.csv to _trade.csv
- Fix strategy statistics CSV export with proper headers and numeric values
- Add comprehensive TradingView-compatible statistics calculation
- Version bump to 6.1.0 for breaking API changes

v6.0.18

Toggle v6.0.18's commit message
fix: prevent strategy halt from phantom positions

Add floating point precision handling to eliminate tiny phantom positions
that prevent further trading when position size approaches zero