PINE LIBRARY

ALGEBRA

By Patarla1
Library "ALGEBRA"

line_fromXy(x1, y1, x2, y2)
  Parameters:
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)

line_getPrice(x, slope, yInt)
  Parameters:
    x (int)
    slope (float)
    yInt (float)

line_length(x1, y1, x2, y2)
  Parameters:
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)

distance(x1, y1, x2, y2)
  Parameters:
    x1 (int)
    y1 (float)
    x2 (int)
    y2 (float)
MATH

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