My code generates x and y coordinates for rectangles to be plotted on price chart. I do not know how many objects as these are code generated depending on price action.
What I like to do is:
1. Rectangles = { (x1,y1), (x2,y2),(x3,y3),…..} These are Unknown number of values.
2. Drawrectangle plots all the rectangles on the chart.
3. There is an another function processing the values in Rectangles( = { (x1,y1), (x2,y2),(x3,y3),…..} ), and are updated after each barupdate.
I am trying to define a List by name “Rectangles “ containing (x1,y1), (x2,y2),(x3,y3),….. as there are no limitation in number of objects in a List. I can then process the data in this List.
Can some one help me in defining the Variable “Rectangle” that contains the coordinates (x,y)
Any help is highly appreciated.
Comment