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.

Strategy ID on successful compilation
 Post subject: Strategy ID on successful compilation Post rating: 0   New post Posted: Wed 30 May, 2012, 16:33 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
When a strategy is successfully compiled in the JForex client platform, a console message appears, such as:
15:07:30 Compilation successful. Strategy ID: 9BCFC07B7DD0931724E3FD273C062743

This ID seems to be some kind of hash of the compiled strategy. Is that correct? Is there a way to access this "Strategy ID" from within the strategy? If it is accessible, I would like to use it for version-stamping of logs.


 
The Best Answer  Post subject: Re: Strategy ID on successful compilation Post rating: 0   New post Posted: Thu 31 May, 2012, 07:34 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Isak wrote:
This ID seems to be some kind of hash of the compiled strategy. Is that correct?
Yes.
Isak wrote:
If it is accessible
No. However, essentially the ID is a hash based on the source code content when spaces and new lines are removed. Thus, in strategy onStart you could retrieve by reflection the strategy source, trim it and make your own ID.


 

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