I typically view charts at maximal zoom (when each candle is 1px wide) and i have problem with navigating through my chart markers.
Here are the steps to reproduce.
1. Add 'time marker' to any chart and set label=TEST for it
2. Press '-' zoom button many times until it becomes grayed out (disable)
3. Scroll chart horizontally so that marker goes off-screen
4. Find this 'TEST' marker in Navigator window and double click it
At this moment chart is automatically scrolled so that marker becomes visible, 'but' at the same time zoom changes to one step lower - blank lines appear between candles. Note: '-' zoom button does not become enabled, i.e. to revert to original zoom i have to click '+ zoom' once and then click '- zoom' twice.
Same problem occurs via JForex API from code - see sample strategy below.
It seems that problem occurs only at max zoom.
Please fix. That problem is really annoying.
package jforex;
import java.awt.*;
import com.dukascopy.api.*;
import com.dukascopy.api.plugins.*;
import com.dukascopy.api.drawings.*;
public class NavTestPlugin extends Plugin {
private IPluginContext context;
public void onStart(IPluginContext context) throws JFException {
this.context = context;
IChart curChart = context.getLastActiveChart();
IChartObjectFactory cof = curChart.getChartObjectFactory();
ITimeMarkerChartObject marker = cof.createTimeMarker("test", curChart.getMinTime() - 1000);
marker.setText("test");
marker.setColor(Color.RED);
curChart.add(marker);
curChart.navigateAndSelectDrawing(marker);
}
public void onStop() throws JFException {
}
}