Hello! Does anybody know how can I set a specific color for the volume chart bar at a given position? For the price chart I did something similar using the DataSeries' "setPriceBarColor", called from the overriden "calculate" void in the study class, something like:
@Override
protected void calculate(int index, DataContext ctx) {
[...]
DataSeries series = ctx.getDataSeries();
[...]
series.setPriceBarColor(index, Color.GREEN);
}
However I do not see a corresponding "setVolumeBarColor" or anything similar I could think of, or an alternate approach... any ideas are welcome. Thanks!
@Override
protected void calculate(int index, DataContext ctx) {
[...]
DataSeries series = ctx.getDataSeries();
[...]
series.setPriceBarColor(index, Color.GREEN);
}
However I do not see a corresponding "setVolumeBarColor" or anything similar I could think of, or an alternate approach... any ideas are welcome. Thanks!