I figured out the color issue. I assigned the color to the wrong index. Still working on the lines across the chart.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This situation is infuriating. I have EAs where I have been able to create a horizontal line with the creation of an object, and I can choose either a vline or an hline, but when I want to do this on an indicator in the same window, I get a single dot for the lines.
Here are some snippets of my code:
Here is the code to get the indicator values, I only expect a single value in each buffer, the zero'th position value
So there are two problems, I notice that as the new can dles form, the lines do grow, but I want them to be across the chart from left to right. Second, although I have them all in the right order and assigned to the correct buffer, they still draw the yellow line (P1Mid) as the bottom line and the P1Low (red line) in the middle.
Here is a snapshot of the chart:
Horizontal lines
The expert prints in the window below show the correct data values.Still the lines are not as I would like for them to be. It may be because I am tired and I have been working long hard hours on this, but I cannot find the problem. I have a feeling that the line line across the chart issue is based on the SetIndexDrawBegin function, but I tried Bars - 1 and that made vertical lines.