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.

RenkoBar shift from time
 Post subject: RenkoBar shift from time Post rating: 0   New post Posted: Wed 05 Sep, 2012, 10:04 
User avatar

User rating: 0
Joined: Sat 25 Aug, 2012, 11:53
Posts: 4
Location: Russian FederationRussian Federation
Hi, Support!

How to receive sequence number RenkoBar, if I know time of opening of this RenkoBar

Thanks.


 
 Post subject: Re: RenkoBar shift from time Post rating: 0   New post Posted: Wed 05 Sep, 2012, 10:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Feed_history


 
 Post subject: Re: RenkoBar shift from time Post rating: 0   New post Posted: Tue 11 Sep, 2012, 07:31 
User avatar

User rating: 0
Joined: Sat 25 Aug, 2012, 11:53
Posts: 4
Location: Russian FederationRussian Federation
For Example!
On a chart the vertical line marked a bar with number 15
readRenkoBars return renko bars from 17 to 2.
And I need to receive the correct number of a bar. Analog of function iBarShift(Symbol(),0,TIME) in MQL4.


Attachments:
readRenkoBars.jpg [425.57 KiB]
Downloaded 375 times
ReadRenkos.java [2.76 KiB]
Downloaded 306 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: RenkoBar shift from time Post rating: 0   New post Posted: Wed 12 Sep, 2012, 10:55 
User avatar

User rating: 0
Joined: Sat 25 Aug, 2012, 11:53
Posts: 4
Location: Russian FederationRussian Federation
I hope for your help.
Thanks!


 
 Post subject: Re: RenkoBar shift from time Post rating: 0   New post Posted: Thu 13 Sep, 2012, 07:33 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
So in IRenkoBarFeedListener.onBar just check if your selected time is greater than bar.getTime() and less than bar.getEndTime(). If this is the case, then you have found your sought-after renko bar.


 
 Post subject: Re: RenkoBar shift from time Post rating: 0   New post Posted: Thu 13 Sep, 2012, 10:24 
User avatar

User rating: 0
Joined: Sat 25 Aug, 2012, 11:53
Posts: 4
Location: Russian FederationRussian Federation
thank you very much!


 

Jump to:  

  © 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