The first issue, two trendlines are drawn at the same bar with completely different parameters, it is intermittent and only happens on live prices, chart history is fine. Below is the second issue it happens when bars are added after PC was disconnected from the trading server and reconnected: I suppose I could code to redraw the lines if there are two lines on the same bar but I would rather eliminate the error.
I suppose so for the second one, but to draw 2 on the same bar with different parameters... how can previous close and current open change their values ?
EDIT : Oh I see what your saying now I had not noticed on the first chart, the trendline is already erroneous on the bar before the double trendline one ... so both issues are really the same thing. I guess I'll just have to make it redraw the whole chart on the tick after the downloaded history tick to give it time to sort itself out.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I wrote a test indicator to replicate issues I have been having with trendline objects. There are two of them. Here is the simple test indicator to place one, non raying trendline on every bar from previous close to current open.
Here is two 1 minute charts created by that test indicator.
The first issue, two trendlines are drawn at the same bar with completely different parameters, it is intermittent and only happens on live prices, chart history is fine.
Below is the second issue it happens when missed bars are added because PC was disconnected from the trading server and reconnected:
I suppose I could code to redraw the lines if there are two lines on the same bar but I would rather eliminate the error.