Hi,
I want to add HeikinAshi indicator on chart. When I use this code
chart.add(indicators.getIndicator("HeikinAshi"));
indicator will be added with default parameters
But I need that Up bars be GREEN and Down bars be RED
When I use this code
chart.add(indicators.getIndicator("HeikinAshi"), new Object[] {null}, new Color[]{Color.GREEN,Color.RED}, new DrawingStyle[]{DrawingStyle.LINE}, new int[]{1});
indicator will be added but HeikinAshi border will be GREEN and HeikinAshi candle will be RED. It is not right.
Thanks for help