Tags: deepentropy/oakscriptJS
Tags
Support per-bar coloring for plots and fills - Add optional color field to SeriesHandle.setData() data points (#87) - Add colors parameter to plot() runtime function (#87) - Pass per-bar colors through LightweightChartsAdapter (#87) - Add color field to TimeValue metadata type (#87) - Add colors array to FillConfig and FillData (#88) - Bump version to 0.2.7 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix EMA seed window to slide past leading NaN values Revert the fixed-window approach from v0.2.3 — EMA now collects `length` valid (non-NaN) values starting from the first valid bar. This fixes chained EMAs on derived series (MACD signal, TRIX, DEMA/TEMA, Elder Force) where leading NaN caused complete initialization failure or wrong seed values. Closes #81 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix tsi() momentum seed and EMA SMA-seed window with NaN inputs tsi: seed momentum[0] with NaN instead of 0 to match PineScript (close - close[1] is na on bar 0). ema: use fixed-width window of first `length` bars for SMA seed, averaging only non-NaN values. Previously skipped NaN positions entirely, shifting the seed index by one per NaN. Closes #79 Closes #80 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix ta.percentrank() and ta.rci() to match PineScript behavior percentrank: compare against previous `length` values only (exclude current value), use count/length*100 formula. rci: use tie-corrected Spearman formula so duplicate values in the window produce correct results. Closes #77 Closes #78 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix ta wrapper missing 29 functions (rci, percentrank, dmi, hma, cmo,… … etc.) Add Series wrappers for all taCore functions that were missing from the ta convenience object. Bump version to 0.2.1. Closes #76 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PreviousNext