I am trying to develop a semi-automatic EA that includes Horizontal lines, which when moved, the price of a double variable is updated.
To be more specific, when I place the EA on a chart, 3 lines shall appear. One for Stop loss, one for resistance and one for support. The user shall be able to move the lines and when done so, the price of a variable shall be updated. This variable will be used in conditions or order placement.
I tried yesterday to copy the code from an indicator that uses lines but due to my limited programming experience was unsuccessful.
I believe it would be a useful special feature to be able to link the price of a Horizontal line to a double variable.