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.

Period Specific
 Post subject: Period Specific Post rating: 0   New post Posted: Thu 25 Jul, 2013, 14:28 
User avatar

User rating: 0
Joined: Wed 26 Jun, 2013, 23:18
Posts: 20
Location: France, Paris
Hello,
I was using a specific period such as 26 s for example, how can I do?Thank you
Kind Regards,
David

@Configurable("Period Premier ")
public Period PeriodPremierTick = Period.TEN_SECS;


 
 Post subject: Re: Period Specific Post rating: 0   New post Posted: Thu 25 Jul, 2013, 14:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Try:
    @Configurable("")
    public Unit periodUnit = Unit.Second;
    @Configurable("")
    public int periodUnitCount = 12;
   
    @Override
    public void onStart(IContext context) throws JFException {
        Period customPeriod = Period.createCustomPeriod(periodUnit, periodUnitCount);
    }


 

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