Dukascopy
 
 
Wiki JStore Search Login

onCandle event
 Post subject: onCandle event Post rating: 0   New post Posted: Fri 03 May, 2013, 21:23 

User rating: 0
Joined: Thu 02 May, 2013, 15:22
Posts: 8
Location: Czech RepublicCzech Republic
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


 
 Post subject: Re: onCandle event Post rating: 0   New post Posted: Mon 06 May, 2013, 10:29 
Visual JForex expert at Dukascopy
User avatar

User rating: 4
Joined: Fri 06 Feb, 2009, 16:34
Posts: 130
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.


 

Jump to:  

cron
  © 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