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.

More periods
 Post subject: More periods Post rating: 0   New post Posted: Tue 18 Dec, 2012, 17:22 

User rating: 0
Joined: Tue 11 Oct, 2011, 20:13
Posts: 64
Location: India,
I am using custom period in a strategy


 public void onStart(IContext context) throws JFException {
      this.engine = context.getEngine();
      this.console = context.getConsole();
      this.history = context.getHistory();     
 
   context.subscribeToBarsFeed(Instrument.EURAUD, Period.createCustomPeriod(Unit.Hour, 12), OfferSide.BID,
           new IBarFeedListener() {
               public void onBar(Instrument instrument, Period period, OfferSide offerSide, IBar bidBar) {
                   



Please help me, how to modify the program to be able to handle 2 different custom periods?
Where and how do I have to place the 2nd period?


 
 Post subject: Re: More periods Post rating: 0   New post Posted: Tue 18 Dec, 2012, 17:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Chart_feeds/Use_multiple_feeds


 

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