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.

Use of PriceRange class
 Post subject: Re: Use of PriceRange class Post rating: 0   New post Posted: Wed 16 Mar, 2011, 15:40 

User rating: 0
Joined: Thu 02 Sep, 2010, 05:01
Posts: 49
Hi Support,
I found the following code on Jforex WIKI:

    public void onStart(final IContext context) throws JFException {
       context.subscribeToRangeBarFeed(Instrument.EURUSD, OfferSide.BID, PriceRange.valueOf(1),
           new IRangeBarFeedListener() {
                   public void onBar(Instrument instrument, OfferSide offerSide, PriceRange priceRange,IRangeBar bar) {
                       console.getOut().println("On Range Bar " + instrument + " " + " " + offerSide + " " + priceRange + " " + bar);
                   }
          }
       );
    }


Could you explain how to use indicators (for example ema) with PriceRange ?

Best regards,
Frank


 
 Post subject: Re: Use of PriceRange class Post rating: 0   New post Posted: Thu 09 Jun, 2011, 15:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/index.php ... Range_Bars
and for use of indicators with range bars:
https://www.dukascopy.com/wiki/index.php ... indicators


 

Jump to:  

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