Skip to content

## [0.9.8] - 2026-03-27 - TA Cross/CrossUnder, Matrix·Vector, Plot Serialization & Input Fixes#172

Merged
alaa-eddine merged 5 commits intomainfrom
dev
Mar 27, 2026
Merged

## [0.9.8] - 2026-03-27 - TA Cross/CrossUnder, Matrix·Vector, Plot Serialization & Input Fixes#172
alaa-eddine merged 5 commits intomainfrom
dev

Conversation

@alaa-eddine
Copy link
Copy Markdown
Collaborator

[0.9.8] - 2026-03-27 - TA Cross/CrossUnder, Matrix·Vector, Plot Serialization & Input Fixes

Fixed

  • ta.crossover / ta.crossunder: Boundary comparison now uses inclusive <= / >= where TradingView expects equality at the crossing bar (replaces strict < / >). Verified against TradingView reference logs.
  • matrix.mult (vector operand): Multiplying a matrix by a row/column vector now returns a PineArrayObject instead of a PineMatrixObject, matching Pine Script semantics and fixing polyline-style indicators (e.g. Spline Quantile Regression).
  • plotchar Signature: Corrected PLOTCHAR_SIGNATURE so the char argument is in the proper parameter slot for dynamic plotchar calls.
  • TYPE_CHECK.color: Accepts Series-wrapped color values so colors passed through variables are not rejected and lost at runtime.
  • color.new / color.rgb: NaN / invalid transparency no longer produces malformed hex strings (e.g. #787b86NAN00).
  • Bool input: Fixed bool input default/coercion edge cases.
  • UDT Return from User Functions: Fixed user-defined functions that return a UDT instance.
  • Drawing Object Serialization / context.plot: Plot serialization avoids circular references when drawing objects are present.

…ndary equality, verified against TradingView logs

matrix.mult(vector) - Now returns PineArrayObject instead of PineMatrixObject, fixing polyline indicators like Spline Quantile Regression
plotchar signature - Added PLOTCHAR_SIGNATURE with char parameter in correct position
TYPE_CHECK.color - Now accepts Series-wrapped color values, fixing color loss when colors come from variables
color.new/color.rgb - NaN transparency guard prevents invalid color strings like #787b86NAN00
Fix : properly serialize drawing objects to prevent cirtular references in context.plot
@alaa-eddine alaa-eddine merged commit dae5469 into main Mar 27, 2026
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant