I'm trying to create a custom indicator that has 2 horizontal lines (1 line above the current price and 1 line below the current price). Similar to pivot lines. I've attached a screenshot of how I want it to look.
Questions:
1. What method/function do I call to draw the lines?
2. Where do I make the function call to draw the lines? OnBarUpdate()?
2. How can I update/redraw the lines only when price cross above or below the lines?
thanks
Comment