I’ve been playing with Murray Math support/resistance lines… there was code available out there, but I didn’t like two things about it. First, it drew the lines as Trendlines, rather than normal indicator plots. Why is this bad? Well, for one thing, you can’t see what the historical values were, since updated levels blow away the previous ones. So, if you are trying to figure out how/if/why they work, you can only investigate in real time. For another thing, the trendlines go right through the numerical readouts, making them hard to read, as far as I’m concerned. The other main issue, as I mentioned in today’s video, is that I hate it when support and resistance lines don’t fall on actual tick values. How the heck can there be support at 1335.94??
So, I made a modified version that addresses both of these issues. It rounds the levels to the nearest tick, and plots the lines as normal, history-preserving indicator plots. If I find these useful, I will make a function as well, so that these support and resistance lines can be used from strategies or other custom indicators.
Here’s a before and after shot. You can see that, apart from the rounding and my color choices, they look very similar. So, I’ve lost nothing and gained plenty by this work.

