Forum

How to make a line that mirrors price and redraws as price moves(looking for hints and advice vs finished code)

so obviously drawing lines is easy and setting new values to them is easy.. What im trying to do is make a line on the chart that mirrors the bid line and moves with it... As prices moves the line moves with it... But if i manually move the line to a certain level-- it will then stay there.. So its

how to cycle through a group of numbers

Been working on this for wayyyyy to long and just plain stuck-- do i use a switch or a enum or something else? Neither switch nor making a emum seem willing to use a integer like below... What im trying to do is cycle through a group of numbers using gap++.. So in the example below we would start

ignore

never mind figured it out :)