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.

how to get pips range of different pairs
 Post subject: how to get pips range of different pairs Post rating: 0   New post Posted: Tue 17 Sep, 2013, 14:30 
User avatar

User rating: 1
Joined: Sun 18 Dec, 2011, 04:05
Posts: 36
Location: Spain, Madrid
I want to get the range pips of several pairs, and trade the pair with bigger volatility or wider range

something like:
//variables
Double range=0;
Double temp=0;
Array pairs [Instrument.EURUSD, Instrument.GBPJPY, Instrument.USDCHF……]; // array of Instruments

For(i=0;i<pairs.lenght;i++){

   range = Math.abs(PipsRange(Pairs[i]));  //ie, using daily or weekly MIN MAX indicator

If(range>temp){
   biggerRange = range;
   pairToTrade = Pairs[i];
}
  temp=range;


}


Please, Any help to program this?

BR


 
 Post subject: Re: how to get pips range of different pairs Post rating: 0   New post Posted: Tue 17 Sep, 2013, 14:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Assuming that you mean range bars, see:
https://www.dukascopy.com/wiki/#Chart_feeds
here is how you subscribe to multiple feeds:
https://www.dukascopy.com/wiki/#Chart_feeds/Use_multiple_feeds


 

Jump to:  

cron
  © 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