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.

Detecting onBar for custom periods?
 Post subject: Detecting onBar for custom periods? Post rating: 0   New post Posted: Wed 11 Dec, 2013, 11:40 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Hi

Wondering if there is any way to detect the change of bar for a custom period (3 Mins).

This is for a visual trade manager using Swing.

I've set up the custom period in the JForex client, and it works fine on the chart.

But I'm only getting onBar callbacks on the standard periods.

Obviously, I could set up a counter to keep track of three 1 minute bars. But how can I tell which 1 minute bar would be the first in the 3 minute candle?

Any ideas much appreciated.


 
 Post subject: Re: Detecting onBar for custom periods? Post rating: 0   New post Posted: Wed 11 Dec, 2013, 13:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You have to subscribe to the custom periods, see:
https://www.dukascopy.com/wiki/#Chart_feeds


 
 Post subject: Re: Detecting onBar for custom periods? Post rating: 0   New post Posted: Wed 11 Dec, 2013, 14:48 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Thanks

That's the bit I was missing!


 

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