|
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? |
scotpip
|
Post subject: Detecting onBar for custom periods? |
Post rating: 0
|
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.
|
|
|
|
 |
API Support
|
Post subject: Re: Detecting onBar for custom periods? |
Post rating: 0
|
Posted: Wed 11 Dec, 2013, 13:35
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
scotpip
|
Post subject: Re: Detecting onBar for custom periods? |
Post rating: 0
|
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!
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|