Dukascopy
 
 
Wiki JStore Search Login

Incorrect equity in historical testing mode
 Post subject: Incorrect equity in historical testing mode Post rating: 0   New post Posted: Fri 09 Sep, 2011, 14:48 

User rating: 0
Joined: Wed 18 May, 2011, 08:40
Posts: 43
Location: RU
Calling context.getAcount().getEquity() equity in onStart() method when running a strategy in historical testing mode returns 0 although the equity is 5000

public void onStart(IContext context) throws JFException {
...
context.getAcount().getEquity();
}

The same call returns correct equity when testing in live mode.


 

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