The solution is pretty simple to implement. However there needs to be a very clear pattern to how you want these levels to adapt to the current price. I looked at the three examples you gave and I don't see a pattern that can be incorporated into a solution.
So you need an algorithm. This algorithm needs to cover the full range of values in the stock market. It should include a set of rules that enable it to adapt to prices ranging from 1 dollar up to 1 thousand dollars. For example. Take current price and determine how many digits are on the left side of the decimal point. Then round that value to the nearest full increment. Which implies you need a list of increments. A value of 225 might round up to 230. Just depends on the granularity you want here. Then from that base number you then increment by 1's, 5's, 10's, 25's or 100's. Depending on how many digits to the left of the decimal.
The algorithm to do this is the most difficult part. But until you have a complete algorithm we can't even write a single line of code.
Or you can create a very simple study with user adjustable inputs for each value you want to plot:
input levelOne = 180;
input levelTwo = 190;
input levelThree = 200;
input levelFour = 210;
plot dataOne = levelOne;
plot dataTwo = levelTwo;
plot dataThree = levelThree;
plot dataFour = levelFour;