User rating: 0
Joined: Thu 23 Jan, 2014, 21:43 Posts: 17 Location: Peru, La Perla
Im trying to create an indicator that draws X horizontal lines each Y steps. For now im hardcoding the X and Y amounts but its not working well. I'm using a For statement but on each "for" the indicator re-draw the horizontal line, it uses the same object and put in the new position. I think i need an array of IHorizontalLineChartObject but dont know how to do it. Thanks
double decimales = 1.7; for(int i = 1; i <= 8; i = i +1) { decimales=decimales+ 0.01; IHorizontalLineChartObject zLine = factory.createHorizontalLine("zLine", decimales); zLine.setLineStyle(LineStyle.SOLID); zLine.setColor(Color.RED); chart.add(zLine); }