I got the error 5 : "4-th argument of the Plot() call has incorrect type.
The function expected a NUMBER here,but found an ARRAY."
Also other trials to achieve this failed, so how could it be done
to get just an empty space on the first bar of the day before the
new pivot line starts ?
Thank youi for your answer, but this one I also tried already,
I should have started to describbe this one first.
Indeed in this case we obtain an empty space on the first bar
after the day change, but strangely an oblique line develops
now on the last bar of the previous day, without even the condition
being met. The oblique line is just staggered one bar to the left !
The whole code is very long as I added also Fibs to 6 pivot levels
but I extracted the essential sequences here. I changed the styledashed to stylethick to show it more clearly, but also
stylestaircase doesn't change the problem...
Optionally add the same plot, shifting it of 1 bar, to extend it to the endBars:
// using a different color only to see where it is the "extension"`
Plot( iif( cond1, bp, null ), "", colorBlue, styleThick | styleNoLabel | styleNoTitle, null, null, 1 );
(in the posted code thebpvalues are changing in correspondence of the endBars - this is the reason you saw the 'oblique lines')