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.

How can I store global Java Objects
 Post subject: How can I store global Java Objects Post rating: 0   Post Posted: Fri 11 Jun, 2010, 10:09 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
I want to store Java Object data in a global scope of JForex. This should be in a way that my independent indicator and strategy programs could access this data. How to do this?


 
 Post subject: Re: How can I store global Java Objects Post rating: 0   Post Posted: Mon 14 Jun, 2010, 07:44 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
use a directory "files" in your Strategies directory.
Also you could use the annotation @RequiresFullAccess. It will let your code to access any file or directory that you need.


 
 Post subject: Re: How can I store global Java Objects Post rating: 0   Post Posted: Tue 20 Jul, 2010, 13:18 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
My suggestion:
Please supply a custom Java Object container within JForex to store data temporarily. Writing complex data to a file is quite unconvenient at all. That is fact especially with the present directory access of JForex. An indicator cannot achive the right directory, only strategies.


 

Jump to:  

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