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.

Are there Global variables aviaialble in JForex?
 Post subject: Are there Global variables aviaialble in JForex? Post rating: 0   New post Posted: Mon 29 Nov, 2010, 08:28 

User rating: -
Hi,

In MT4 Global Variables are avaiailble as follows:
any Expert Adviser (analog of Strategy in JForex) could
access, read and write these varaiables - they are common to whole MT4 application.
They are keeping their state, even if MT4 platform would re-start.

Is such thing possible in JForex?
Cannot find anything similar.

Yes, I know - about possibility to read-write in shared file -
but this is not, what I'm after:

I'm looking for Global Variables, which will reside in JForex
application memory, but not in external file or database.

Or at least another possibility - to read-write to Windows registry
from under JForex.
Don't know, how to do this. Please advise.


 
 Post subject: Re: Are there Global variables aviaialble in JForex? Post rating: 0   New post Posted: Mon 29 Nov, 2010, 10:02 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
if you mean to have a possibility to store these variables on our server or the client - it's not possible.
But, try the Java Preferences API. Here is nice tutorial https://www.devdaily.com/blog/post/java/simple-java-preferences-api-example


 

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