I'm writing indicator that draws trendlines on the chart. I look Ninjas's help file but I don't understand these:
1. I drawing trendline X to Y, but many ticks later i must update end point. How can i do this? (Yes i know each object in Ninja has Tag, i can think i find object via its tag but wich method? I mean is there a method FindOnject(tag)?
2. I know if i want to draw no extension line i must use drawline and if i want to extended line i must use drawextendedline. But in my indicator I drawing line at first has not left or right extension. Many ticks later sometimes i must extend before drawed line. At this scenerio maybe i must use always extended line and i set its startbarsago or endbarsago properties for extend. But i don't understand how can i set left or right extension infinite. Could you tell me how can i do this easily?
Have a nice day.
Comment