Showing the capabilities of what I call Fractals (SHS and iSHS)

FX:UK100   FTSE 100 Index
56 1
We all know how to calculate a possible target when a a SHS or iSHS appears with a horizontal neckline mirroring the top-neckline distance. What is less known however, is the fact that sloped necklines can also be very supporting. In that case you take the point of the bar connected to the neckline with the greatest distance to the Head. In my example you cannnot recognize a SHS , but as you can see it workes (this time...) the same and also very accurate in this case!

I'm planning to make a Pine script to calculate the target value and to add that value as text and a horizontal line on that target value to the graph as in this example. I'm however completely new to Pine scripting. So, if anyone can give me some inside how to find the values where the bars are connected to my blue 'neckline' I would be very grateful!
From growing inside in Pine scripting I can now say this idea will not be possible, because Pine is a vector based language and not an object oriented language, so a user drawn line is not referrable in Pine code. Sad...
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out