HAd same problems. Put WindowRedraw() at the end of Start(){}

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
I have an issue with my indicator which I dont understand.
I have a makelabel function which is supposed to create a text by each bar with a number.
the alerts are just for my testing while trying to figure out this error
The issue is, when I attatch the indicator to a chart, the texts are not on the chart, but they are all in the objects list but they have a date of 1974 and have an erronous price co-ordinate.
But if I recompile this indicator while it is still attached to the chart, all the texts get the correct date and price values and they all appear on the chart.
The Alerts show the index is correct, it is the same as the bar number, and the array value is correct, the time is a timestamp it looks ok in that it is different for each index value except the zero index.
Can anyone tell me what am I missing ?