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.

Stop Loss Level setting problem
 Post subject: Stop Loss Level setting problem Post rating: 0   Post Posted: Thu 14 Jul, 2016, 11:50 
User avatar

User rating: 0
Joined: Tue 06 May, 2014, 20:20
Posts: 1
Location: Greece, Thessaloniki
In JForex Demo platform by clicking -> Portfolio -> "My account" I have been unsuccessful in altering Stop Loss Level.

In "My Account" tab it seems that "Active Stop Loss Level" has been updated to the desired level (say from 50100AUD to 2000AUD).
Yet upon execution of a command "console.getOut().println(account.getStopLossLevel());" the initial value 50100 is printed.

I note that I use JForex on a Linux platform


 
 Post subject: Re: Stop Loss Level setting problem Post rating: 0   Post Posted: Tue 16 Aug, 2016, 09:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello.

Information about account isn't updated immediately on client, callback method IStrategy.onAccount(IAccount) must be called when account information update is received.
Test strategy receives it in few seconds after "Stop Loss Level" value is changed.

Kind regards, Support Team.


 

Jump to:  

cron
  © 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