Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

onCandle event
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=49165
Page 1 of 1

Author:  vjftest [ Fri 03 May, 2013, 21:23 ]
Post subject:  onCandle event

Hi all,

I have question about onCandle event whether is it working properly.
I thought this event would be called only if candle was finished depending on selected time periode, but it is actually called every 10 seconds (when 10 seconds candle is finished). Is this really correct behaviour? I think it would be better if it is called only every X (seconds, minutes, etc) depending on selected time periode..

And also why we cant define own time periodes? Like 1s or 13s, 2 mins etc..?

Thank you

Author:  Visual Support [ Mon 06 May, 2013, 10:29 ]
Post subject:  Re: onCandle event

vjftest wrote:
Hi all,

I have question about onCandle event whether is it working properly.
I thought this event would be called only if candle was finished depending on selected time periode, but it is actually called every 10 seconds (when 10 seconds candle is finished). Is this really correct behaviour? I think it would be better if it is called only every X (seconds, minutes, etc) depending on selected time periode..
It is correct behaivour, the selected period is used by default for indicators and some other blocks. If you need only specific candle event, you need to create filter(IF block).

vjftest wrote:
And also why we cant define own time periodes? Like 1s or 13s, 2 mins etc..?
Thank you

Becouse, they are not standard periods.

  Page 1 of 1