Dear support!
In new JForex 3 the method
setHistogramTwoColor(boolean histogramTwoColor)
(If set to true and drawing style is histogram, then it will be shown in two colors, positive values with green and negative with red) doesn't works in indicator. Still operates well in old good JForex.
Some source code from my indicator:
public void onStart(IIndicatorContext context)
{
console = context.getConsole();
this.context = context;
this.history = context.getHistory();
indicatorInfo = new IndicatorInfo("Simple", "Simple", "MyIndicators", false, false, false, 1, 0, 1);
indicatorInfo.setRecalculateOnNewCandleOnly(true);
inputParameterInfos = new InputParameterInfo[]
{
new InputParameterInfo("Input data", InputParameterInfo.Type.BAR)
};
outputParameterInfos = new OutputParameterInfo[]
{ new OutputParameterInfo("out", OutputParameterInfo.Type.DOUBLE, OutputParameterInfo.DrawingStyle.HISTOGRAM) {{ setHistogramTwoColor(true); }} };
}Would be grateful for help!