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.

Setting the account balance of a simulation account
 Post subject: Setting the account balance of a simulation account Post rating: 0   New post Posted: Mon 12 Mar, 2012, 05:30 

User rating: 1
Joined: Tue 30 Aug, 2011, 08:54
Posts: 19
Location: AustraliaAustralia
Is it possible to set the balance amount of a simulation account before starting a strategy (via the API)? I would like the balance to be set every time I run a session.


 
 Post subject: Re: Setting the account balance of a simulation account Post rating: 0   New post Posted: Mon 12 Mar, 2012, 08:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, see:
https://www.dukascopy.com/wiki/#Standalone_JForex_API/Modifying_account_data


 
 Post subject: Re: Setting the account balance of a simulation account Post rating: 0   New post Posted: Tue 13 Mar, 2012, 05:51 

User rating: 1
Joined: Tue 30 Aug, 2011, 08:54
Posts: 19
Location: AustraliaAustralia
That is in the ITesterClient interface which is not what I am after. I am talking about the IClient interface which connects live to my DEMO account. This account started with $500,000 which doesn't allow me to test different lot size values for orders based on the current account size and a particular risk factor. Whenever I start a new live test using my demo account I would like the account balance to be reset to a particular value.


 
 Post subject: Re: Setting the account balance of a simulation account Post rating: 0   New post Posted: Tue 13 Mar, 2012, 09:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can select your account balance only on account creation. Afterwards, in orders to change it, you have to contact Dukascopy support. Thus, a more viable way would be to switch between multiple DEMO accounts of different account balances.


 

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