I would like to build an indicator that has some user interaction. Pretty simple, but not sure if it can be done easily (this is in part because there is no simple way to simply drop a line on a chart and have an alert on it breaking - feature suggestion - simple drop on chart line break alert! ). I would like the indicator to draw a horizontal line, but I want the user to be able to drag it up or down, like they could with a normal drawing object they added manually. I would like the indicator to be able to retrieve the current price level in onbarupdate for the alert.
In testing, if I currently click on a horizontal line drawn by the indicator, I get the cannot move icon when I try to drag it. There does not seem to be a parameter in Draw.HorizontalLine to allow this?
If possible, any pointers would be appreciated.
Comment