Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Platform changes zoom level when navigating to time markers
 Post subject: Platform changes zoom level when navigating to time markers Post rating: 0   New post Posted: Tue 24 Oct, 2017, 16:12 

User rating: 18
Joined: Thu 20 Apr, 2017, 22:42
Posts: 165
Location: Russian Federation,
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 {
    }
}


 
 Post subject: Re: Platform changes zoom level when navigating to time markers Post rating: 0   New post Posted: Wed 25 Oct, 2017, 07:55 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Topic has been moved to https://www.dukascopy.com/swiss/english ... 00&t=55655


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com