Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2584 TEN_SEC fastest period for onBar callback
 Post subject: JFOREX-2584 TEN_SEC fastest period for onBar callback Post rating: 0   New post Posted: Thu 30 Dec, 2010, 19:22 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Hello!

I found that when using @Configurable and Period dropdown list shows only limited dozen on all described in API documentation periods(e.g. I cant find TWO_SEC). I did small research and realized than onBar method working with resolution starting from 10 seconds so there is no way to use more high speed bars.
Could you please give me some suggestions how we can do some trading based lets say on ONE_SEC or TWO_SEC intervals.


 
 Post subject: Re: Is TEN_SEC fastest period for onBar callback? Post rating: 0   New post Posted: Sun 02 Jan, 2011, 08:07 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
At this point in time onBar is only called on basic periods.
The same applies for indicators. You cannot use non-basic periods in indicators with the current versions.

Quote:
basic periods see:
Period.isPeriodBasic(Period period)
The method checks whether the passed period is basic {TICK, TEN_SECS, ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY} If it is basic - appropriate basic period is returned If it is not basic - null is returned


Best, RR.

@DukasCopy: Any hint on your roadmap to include support of non-basic periods would be very much appreciated. Thanks a lot!


 

Jump to:  

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