PINE LIBRARY

intersect

Von kaigouthro
Library "intersect"
Find Line Intersection X/Y coordinates.
Simple to use, will find intersection if it exists on the segments
if the line segments do not cross on segment, an 'na' value will be returned
if you plot new items with the output coords, they still plot.
avoid this by setting a na(x) condition before plotting new items

get(l1, l2, (optional _round))
  line intersection coordinates
  Parameters:
    l1: (line) first line
    l2: (line) second line
    _round: True to make an INT for plotting
    if not used, will not round ( overload loophole)
  Returns: [x,y] with x as int if bool is used
collisoncrossingdetectionintersectintersectionLINEMarket GeometryMATH

Pine Bibliothek

Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.

Haftungsausschluss