Dukascopy
 
 
Wiki JStore Search Login

NullPointerException in JForex2ExcelV2
 Post subject: NullPointerException in JForex2ExcelV2 Post rating: 0   New post Posted: Fri 02 May, 2014, 07:44 
User avatar

User rating: 0
Joined: Fri 17 Jan, 2014, 17:43
Posts: 16
Hello and good luck for this day!!!
I try to write data in file with JForex2ExcelV2
I got an error NPE on row "calendar.setTimeInMillis (MasterTick.getTime());"
I work with JForex platform.
What can I do?
Best regard and thank you for your help


 
 Post subject: Re: NullPointerException in JForex2ExcelV2 Post rating: 0   New post Posted: Mon 05 May, 2014, 23:41 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,

Regarding to this topic, there is already a v3 out there.

On the other hand, this piece of code is the work of a user. Try to contact him if you have issues with it.


 
 Post subject: Re: NullPointerException in JForex2ExcelV2 Post rating: 0   New post Posted: Tue 06 May, 2014, 09:07 
User avatar

User rating: 0
Joined: Fri 17 Jan, 2014, 17:43
Posts: 16
Thank you very mutch for your reply!!!https://www.dukascopy.com/swiss/english/forex/jforex/forum/posting.php?mode=reply&f=77&t=51169#
I used as you me suggested JForexExcelV3 End users.
It's OK. The file is created when I stopped strategy.
But I want writing lines on file opened that data arrives.
Best regard


 
 Post subject: Re: NullPointerException in JForex2ExcelV2 Post rating: 0   New post Posted: Thu 08 May, 2014, 19:35 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,

As I said, try to contact the user who have created this. You can send him a PM...

On the other hand, after a quick peek on the source I can say that the contents (tick data) are flushed from time to time to the output file. Try to decrease the 'limit' parameter. By default it is 1000, which means that the content will be updated after a 1000 tick or bar has been processed.
Try to set it to 10-20, so after 10-20 ticks/bars are process, the content is flushed to the output.


Success!


 

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