Are you talking about a trendline with "ray" as true or as false?
As far as I am aware the trendline only "exists", as far as the code is concerned, between the two co-ordinates.The trendline with ray set to true when drawn in the window may extend in either direction beyond the two co-ordinates, but I think that is just drawn on visually and does not have a counterpart in the code. You can get any points between the two co-ordinates by using ObjectGetShiftByValue or ObjectGetValueByShift. I imagine that if you want to predict the values beyond those points then you would need to figure out the equation which describes the angle of the trendline and use that to predict x from y or y from x instead.
Are you talking about a trendline with "ray" as true or as false?
As far as I am aware the trendline only "exists", as far as the code is concerned, between the two co-ordinates.The trendline with ray set to true when drawn in the window may extend in either direction beyond the two co-ordinates, but I think that is just drawn on visually and does not have a counterpart in the code. You can get any points between the two co-ordinates by using ObjectGetShiftByValue or ObjectGetValueByShift. I imagine that if you want to predict the values beyond those points then you would need to figure out the equation which describes the angle of the trendline and use that to predict x from y or y from x instead.
Good point Clerin, your arguments lead me to think and find a solution form a different perspective. Thanks!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Coders,
assuming I get hold of an object which happepns to be of type trendline and I want to iterte through its price values; as trendlines usually do, this one also leaves the screen area at some back time point. Naturally what comes to mind is - before I start the price values iteration I would better set up some limit values for the time parameter as I surely am not interested in those parts of the trendline which lie outside the visible screen. How do I obtain the values where the trendline leaves the screen?