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.TICK
 Post subject: Period.TICK Post rating: 0   New post Posted: Thu 02 Jan, 2014, 19:23 

User rating: 1
Joined: Thu 02 Jan, 2014, 19:06
Posts: 16
Location: ThailandThailand
Why is there this period in the API? and what time length is it? how is it used?
also is Period.ONE_SEC the shortest period accepted in history and indicators methods?


 
The Best Answer  Post subject: Re: Period.TICK Post rating: 0   New post Posted: Fri 03 Jan, 2014, 09:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
c112 wrote:
Why is there this period in the API?
This is rather a legacy field from the time there where no feed descriptors.
c112 wrote:
also is Period.ONE_SEC the shortest period accepted in history and indicators methods?
Yes. But mind that it is a custom feed, which needs to be dealt with in the following way:
https://www.dukascopy.com/wiki/#Chart_feeds
See also other history methods:
https://www.dukascopy.com/wiki/#History_bars
https://www.dukascopy.com/wiki/#History_ticks


 
 Post subject: Re: Period.TICK Post rating: 0   New post Posted: Sat 04 Jan, 2014, 02:38 

User rating: 1
Joined: Thu 02 Jan, 2014, 19:06
Posts: 16
Location: ThailandThailand
thanks, also there's https://www.dukascopy.com/client/javadoc/com/dukascopy/api/feed/IBarFeedListener.html


 
 Post subject: Re: Period.TICK Post rating: 0   New post Posted: Mon 06 Jan, 2014, 08:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
c112 wrote:
Please use the approach which is described in wiki - the one with IFeedListener, as it provides you maximum flexibility.


 
 Post subject: Re: Period.TICK Post rating: 0   New post Posted: Wed 08 Jan, 2014, 18:06 

User rating: 1
Joined: Thu 02 Jan, 2014, 19:06
Posts: 16
Location: ThailandThailand
ok noted.
Feed is much better and flexible than the default onBar method in IStrategy, you could remove it in the future maybe


 
 Post subject: Re: Period.TICK Post rating: 0   New post Posted: Thu 09 Jan, 2014, 13:01 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
c112 wrote:
you could remove it in the future maybe

:mrgreen: Just because you don't find it useful, maybe there are other users out there who indeed using this method, don't you think so? ;)


 
 Post subject: Re: Period.TICK Post rating: 0   New post Posted: Thu 09 Jan, 2014, 13:25 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Removal of any method from an interface would cause all current implementations fail to compile. Hence, all existing strategies would need to get rewritten and recompiled. So, obviously, we are not going to do this.


 

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