Well I tried to read tutorials and try to code myself and can't do it. ;(
All I need is to draw lines based on change of direction in MA indicator.
So I got color MA indicator and I want to make it draw 2 lines, one for ceiling, one for floor.
I should be able to tell how long the lines are.
Lines got to start at the bar previous to the bar with new color.
Be able to tell how high or low the lines are from the close price, separately for high and low.
Lines should stay from previous times to see history/trends.
So, to recap, MA indicator starts to go up. Lines are drawn based on the close of the previous bar for the ceiling and floor.
If anyone will write anything please point out in the indicator the code for drawing those ceiling/floor lines so I can add lines to other MA indicators and such.
If anyone can show me how to even draw a line based on direction change I will be happy too. :)