You can use a Ray if it's at a specific angle, otherwise you have to override the Plot method and do it manually (advanced).
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post:
I am struggling with how to code this? To keep it simple, as an example, I would like to draw a horizontal line once prices closes above a 14 EMA... and to draw that line at the close of the bar.... and continue the line until price crosses below the 14 EMA... and again draw the line at the close and continue until reverses.
any help you have, or other indicator that has this included, I could open and see,,,, would greatly appreciate, thanks.
Algorithmically, you'd draw a new line on bar update if your boolean "aboveSMA" is true. Update aboveSMA if close is below the SMA. Unfortunately, I don't think you can draw new objects more than 16 bars ago, so you might have to draw dots.