Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Platform changes zoom level when navigating to time markers
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=55651
Page 1 of 1

Author:  mtnfx [ Tue 24 Oct, 2017, 16:12 ]
Post subject:  Platform changes zoom level when navigating to time markers

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 {
    }
}

Author:  API Support [ Wed 25 Oct, 2017, 07:55 ]
Post subject:  Re: Platform changes zoom level when navigating to time markers

Topic has been moved to https://www.dukascopy.com/swiss/english ... 00&t=55655

  Page 1 of 1