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.

Starting with Feeds
 Post subject: Starting with Feeds Post rating: 0   New post Posted: Wed 25 Jun, 2014, 11:03 
User avatar

User rating: 0
Joined: Fri 04 May, 2012, 08:50
Posts: 11
Location: Spain, Madrid
Hello,
I'm starting to read about the feeds in the wiki, but there is something I do not understand: Is it the same to use the feed TIME_PERIOD_AGGREGATION or TICKS (and use onFeedData () method), to use the onbar methods () and onTick ()?. If so should use feeds that are more modern/top/advanced than the old onbar and methods onTick solution? What differences might have on the use of the two options?

Thanks, sorry for my English! :(


 
 Post subject: Re: Starting with Feeds Post rating: 0   New post Posted: Wed 25 Jun, 2014, 12:13 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
diegoalvsu wrote:
Is it the same to use the feed TIME_PERIOD_AGGREGATION or TICKS (and use onFeedData () method), to use the onbar methods () and onTick ()?.
IFeedListener.onFeedData works only with the feeds that you explicitly subscribe to, however, standard onBar and onTick data for all active instruments. See more here:
https://www.dukascopy.com/wiki/#Strategy_API/IStrategy_interface
diegoalvsu wrote:
If so should use feeds that are more modern/top/advanced than the old onbar and methods onTick solution?
If you only want to work with ticks and bars then you might as well just use onTick and onBar methods. However, if you wish to have the flexibility to change to other type of feeds simply by changing the feed descriptor from the strategy parameter dialog, then the preferable approach is to use the IFeedListener.


 

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