I am trying to build an indicator that will allow the user to set predefined horizontal lines that update when new bars are created.
I want the user to be able to attach the lines to the various candles from the following time frames:
1. One minute
2. Five minute
3. Fifteen minute
4. One hour
5. Two hour
6. One day
7. US Open
8. Weekly
I'd also like the user to be able to choose from the following points on the candle:
1. Open
2. High
3. Low
4. Close
So for instance... it would allow me to do this:
Put a horizontal line on the open of each new 15 minute candle, a horizontal line on the open of each two hour candle, and a horizontal line on the open of each weekly candle. Then as new candles are created for the chose time frames the old line is removed and the new line is added.
I've gotten as far as adding the plots and creating an enum for the time frame selection and the candle position selection but I am unsure how to get those options to show up as drop down selections in the UI. I have not yet attached either the time frame selection or the candle position selection to the enum list.
Am I on the right track or am I way off?
Any help is greatly appreciated.
Comment