Correct ID numbers
-
In this project is how to draw 2 lines, and when the top is dragged the bottom line moves to match, and the relevant candle ID is put in a variable.
This also shows how important block IDs can be, if you run this on backtest you will see that when correct ID numbers are set to false the line is drawn on 0 and cannot be dragged, but when set to true the line can be moved, and the candle ID changes, this also highlights that lower number actions will react quicker to higher numbers. (your terminal will loop through numbers starting with the lowest, meaning that whatever action comes first, will happen first)