PINE LIBRARY

SignalBuilder

By Electrified
Updated
SignalBuilder
Utility for building a collection of signal values. Provides a default view for displaying signals.

  • Simplified API for aggregating signal values.
  • Flexible for use with indicators and strategies.


See the demo section for an example.
Release Notes
v2 'display' function now returns the TableBuilder.Table object to allow for after the fact customization.
Release Notes
v6 Rename SignalGroup to Group since when consumed from elsewhere it's redundant to prefix with Signal. Imported update TableBuilder.
Release Notes
v7 Fixes to TableBuilder
Release Notes
v8 exported utility functions for debugging.
Release Notes
v9 Attempt to fix display function.
Release Notes
v11 Added simple group add neg/pos functions.
Release Notes
v12 Added conditional add method to route to different signal groups depending on the sign of the signal.
Release Notes
v13 Fixed missing sign for small values.
displaysignalsignal-displaysignal-groupssignalssignal-values

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer