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.

Ensure label uniqueness, jfx encryption
 Post subject: Ensure label uniqueness, jfx encryption Post rating: 0   New post Posted: Sun 12 Feb, 2012, 13:45 

User rating: -
I have a question regarding running strategies on remote server. For each order, the label must be unique. If we use a counter to ensure uniqueness, then what will happen if we stop the strategy and start again? Then the order will be rejected since the counter will be restarted and the system will detect duplicate order labels.

Is there a better way to ensure order uniquemess?

Another question is how do we ensure that the strategy deployed is safe from decompilation or reverse-engineering?

Thank you in advance. Awaiting your reply.


 
 Post subject: Re: Strategy running on the Dukascopy Remote Servers Post rating: 0   New post Posted: Mon 13 Feb, 2012, 10:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Guest wrote:
Is there a better way to ensure order uniquemess?
The use of java.util.UUID. For instance:
   private String getLabel(OrderCommand cmd) {
      return cmd.toString() + UUID.randomUUID().toString().replace('-', '_');
   }
Guest wrote:
Another question is how do we ensure that the strategy deployed is safe from decompilation or reverse-engineering?
The .jfx file contains an encrypted strategy .class file


 

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