I am trying to draw two horizontal lines dynamically to represent Support and Resistance lines on a Point and Figure chart.
I would like each line to represent the current support/resistance looking at the current bar and the previous bar only.
For example, if the current bar is Os, then the Support line should be drawn just below the bottom O. As the O bar continues down, the Support line should be moved to the lowest O in the bar and an Alert sounded.
The same for the current bar being Xs, except the Resistance line is drawn just above the top X in the bar. As the X bar continues up, the Resistance line should be moved to the highest X in the bar and an Alert sounded.
Sounds simple and it probably is. Here are some questions...
1. How do I determine if the bar is Os or Xs?
2. How do I issue an Alert sound?
3. How do I draw the horizontal support / resistance line
Can anyone recommend a good book for Ninja Script 8?
Currently, I am trying to modify an existing indicator labeled: SRLinesRB.
Any help will be appreciated.
Thanks,
Ron
Comment