|
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 |
|
SFXbernhard
|
| Post subject: How can I store global Java Objects |
Post rating: 0
|
Posted: Fri 11 Jun, 2010, 10:09
|
|
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?
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: How can I store global Java Objects |
Post rating: 0
|
Posted: Mon 14 Jun, 2010, 07:44
|
|
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.
|
|
|
|
|
 |
|
SFXbernhard
|
| Post subject: Re: How can I store global Java Objects |
Post rating: 0
|
Posted: Tue 20 Jul, 2010, 13:18
|
|
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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|