A: In my opinion what you have drawn is illogical. You have swing turns in Pesavento before you have Parabolic changes or signals. The Pesavento Patterns is a very complex logic it the first place and is not something that lends itself to receiving an outside control.
I suggest you investigate using a DYO to do your line drawing and I have put together this small example.
Line A tests K% crossing above %D, and when this is True, Line B will put in GV the bar's Low as the value to plot.
Line C moves this flag from  to  because  will be reused by Line D and E which test for K% crossing below %D and storing the bar's high to plot.
Line F combines either of the two flags, ie crossing above or crossing below.
When either flag is True, Line G will plot a straight line from the last time and price it plotted to the current bar and price in GV.
The graph is able to plot a line to the current bar. You cannot have the plot be to some prior bar position when the condition is triggered on a particular bar. You can only plot to the bar that has the signal.