Thank you mrtools, we are almost there. It works as intended except that the upline it plots only when I use it as a channel not as trendlines as intended.mrtools wrote: Thu Jun 10, 2021 6:27 am Think I got it right, not very confident in object oriented coding yet.
Using it in trading today, I notice that it does not refresh on the current chart as MTF indicators normally. For the 5m for example I have to switch to the 5m first and then go back to the current chart i.e. 1m in this case. Refreshing the current chart does not do the trick.
Trendlines
Channel