|
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.
IBar.getTime() exception |
lifon
|
Post subject: IBar.getTime() exception |
Post rating: 0
|
Posted: Mon 24 Sep, 2012, 08:57
|
|
User rating: 1
Joined: Mon 27 Feb, 2012, 22:49 Posts: 119 Location: Czech Republic,
|
Hello,
if my strategy on demo account use IBar.getTime(), receive exception NullPointerException.
On live account is this problem not.
|
|
|
|
 |
API Support
|
Post subject: Re: IBar.getTime() exception |
Post rating: 0
|
Posted: Mon 24 Sep, 2012, 09:48
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Please provide an example strategy which replicates the issue.
|
|
|
|
 |
lifon
|
Post subject: Re: IBar.getTime() exception |
Post rating: 0
|
Posted: Tue 25 Sep, 2012, 20:23
|
|
User rating: 1
Joined: Mon 27 Feb, 2012, 22:49 Posts: 119 Location: Czech Republic,
|
I have solved this problem. History.getBar() returns for shift = 0 often first time IBar == null. I must repeat my demand more time and I receive not null IBar.
I attached sample code.
Attachments: |
CheckGetBar0.java [7.22 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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|