What I want is for each day I have a horizontal line, for example 1200. I successfully coded it to draw from 1 bar ago to the current bar but that is incredibly slow and unusable.
Then I decided I could just draw the pivot at the end of the day. But I can't get that to work. If I put bars ago = 390 I get an error on the first day.
What makes more sense is to draw the pivot at the beginning of the day. But it seems that the DrawLine method uses two bars parameters. Passing in -390 (for 390 bars into the future) doesn't work.
I'm a bit stuck. I can program so I just need a hint on how to do it.
Thanks
Comment