Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

Time till close in OHLC panel How to disable it programmatically?
 Post subject: Time till close in OHLC panel How to disable it programmatically? Post rating: 0   New post Posted: Tue 08 Nov, 2016, 19:59 

User rating: 1
Joined: Mon 16 Jul, 2012, 04:14
Posts: 31
Evening kind support!
The panel OHLC has a new option "Time till close".
How to disable it programmatically? Previously, for this purpose I have used similar
ohlc.setParamVisibility(PriceAgregatedInfoParams.START_TIME, false);

I did not find such a parameter in the description.


 
 Post subject: Re: Time till close in OHLC panel How to disable it programmatically? Post rating: 0   New post Posted: Wed 09 Nov, 2016, 12:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
        for(IChart chart : context.getCharts()) {
            for(IChartObject object : chart.getAll()) {
                IOhlcChartObject ohlc = (IOhlcChartObject) object;
                ohlc.setParamVisibility(IOhlcChartObject.CandleInfoParams.TTL, false);
            }
        }


 
 Post subject: Re: Time till close in OHLC panel How to disable it programmatically? Post rating: 0   New post Posted: Fri 11 Nov, 2016, 19:56 

User rating: 1
Joined: Mon 16 Jul, 2012, 04:14
Posts: 31
Evening kind support! Thanks for the answer. It remains to download the new version API: the old version of the API does not contain the parameter with the same name.


 
 Post subject: Re: Time till close in OHLC panel How to disable it programmatically? Post rating: 0   New post Posted: Sat 12 Nov, 2016, 11:46 

User rating: 1
Joined: Mon 16 Jul, 2012, 04:14
Posts: 31
Hi support! I'm using version 2.12.41(latest?) JForexAPI with maven eclipse.
   public enum CandleInfoParams {
       DATE,
       TIME,
      OPEN,
      HIGH,
      LOW,
      CLOSE,
      VOL,
      INDEX
   }
In this version, there is no option TTL. What is the reason?


 
The Best Answer  Post subject: Re: Time till close in OHLC panel How to disable it programmatically? Post rating: 0   New post Posted: Mon 14 Nov, 2016, 08:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It will be available in the next SDK release this week.


 

Jump to:  

  © 1998-2025 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