chore: prepare v1.1.0 release

Update version numbers across Rust, Python, and documentation files to 1.1.0. Enhance the .gitignore to include macOS dSYM files and plans directory. Introduce new dependencies in the Rust core library and update the README to reflect recent performance benchmarks and backtesting engine capabilities. Add new artifacts to the benchmarks manifest and improve documentation for the backtesting engine API.
This commit is contained in:
Pratik Bhadane
2026-03-30 12:45:52 +05:30
parent 2d776b6f90
commit 436954138f
174 changed files with 29297 additions and 10773 deletions
+1 -51
View File
@@ -1,51 +1 @@
//! Shared helpers for candlestick pattern detection.
use pyo3::prelude::PyResult;
/// Validate that open, high, low, close arrays have the same length (for use in CDL* functions).
pub fn validate_ohlc_length(
open_len: usize,
high_len: usize,
low_len: usize,
close_len: usize,
) -> PyResult<()> {
crate::validation::validate_equal_length(&[
(open_len, "open"),
(high_len, "high"),
(low_len, "low"),
(close_len, "close"),
])
}
/// Epsilon for doji-like candles (body ≈ 0) to avoid division by zero.
pub const DOJI_BODY_EPSILON: f64 = 0.0001;
#[inline]
pub fn body_size(open: f64, close: f64) -> f64 {
(close - open).abs()
}
#[inline]
pub fn upper_shadow(open: f64, high: f64, close: f64) -> f64 {
high - open.max(close)
}
#[inline]
pub fn lower_shadow(open: f64, low: f64, close: f64) -> f64 {
open.min(close) - low
}
#[inline]
pub fn candle_range(high: f64, low: f64) -> f64 {
high - low
}
#[inline]
pub fn is_bullish(open: f64, close: f64) -> bool {
close >= open
}
#[inline]
pub fn is_bearish(open: f64, close: f64) -> bool {
close < open
}
// Common helpers are now in ferro_ta_core::pattern. This file is kept for mod declaration.