Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3367 label drawn disappears after restart
 Post subject: JFOREX-3367 label drawn disappears after restart Post rating: 0   New post Posted: Fri 25 Nov, 2011, 17:25 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Hello,

I have a urgent issue. Maybe it's a bug in JForex...

My strategy draws some labels on the chart using the following code.
Unfortunately, when you restart JForex, the label has disappear from the chart !

When you draw the label manually, no pb. It seems to happen only on strategy drawn labels.

Here's the code to try in onStart();

IChartObjectFactory factory = chart.getChartObjectFactory();
        ILabelChartObject objectLabel = factory.createLabel("labelTest",
                history.getTimeOfLastTick(Instrument.EURUSD), history.getLastTick(Instrument.EURUSD).getBid());

        objectLabel.setText("My text");
        chart.addToMainChart(objectLabel);


Thanks


 
 Post subject: Re: label drawn from strategy disappears after restart of JF Post rating: 0   New post Posted: Fri 25 Nov, 2011, 17:50 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Another thing...

I tried with an other chartobject like "signal up", the same problem.
I tried with the deprecated draw() function, same problem

The only chartobject that seems to hold on the chart are lines...


 
 Post subject: label drawn from strategy disappears after restart of JForex Post rating: 0   New post Posted: Tue 29 Nov, 2011, 18:31 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Please could someone give me an answer on this ?

This is very urgent !

Thanks


 

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