|
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 |
RVitekI
|
Post subject: RenkoBar shift from time |
Post rating: 0
|
Posted: Wed 05 Sep, 2012, 10:04
|
|
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.
|
|
|
|
 |
API Support
|
Post subject: Re: RenkoBar shift from time |
Post rating: 0
|
Posted: Wed 05 Sep, 2012, 10:07
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
RVitekI
|
Post subject: Re: RenkoBar shift from time |
Post rating: 0
|
Posted: Tue 11 Sep, 2012, 07:31
|
|
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.
|
|
|
|
|
 |
RVitekI
|
Post subject: Re: RenkoBar shift from time |
Post rating: 0
|
Posted: Wed 12 Sep, 2012, 10:55
|
|
User rating: 0
Joined: Sat 25 Aug, 2012, 11:53 Posts: 4 Location: Russian FederationRussian Federation
|
I hope for your help. Thanks!
|
|
|
|
 |
API Support
|
Post subject: Re: RenkoBar shift from time |
Post rating: 0
|
Posted: Thu 13 Sep, 2012, 07:33
|
|
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.
|
|
|
|
 |
RVitekI
|
Post subject: Re: RenkoBar shift from time |
Post rating: 0
|
Posted: Thu 13 Sep, 2012, 10:24
|
|
User rating: 0
Joined: Sat 25 Aug, 2012, 11:53 Posts: 4 Location: Russian FederationRussian Federation
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|