Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Historical Tester allows unrealistic entries in CFD
 Post subject: Historical Tester allows unrealistic entries in CFD Post rating: 0   New post Posted: Thu 24 Sep, 2020, 21:48 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 404
Location: Germany, Munich
When I backtest my bot with Sugar White (SUGAR.CMD/USD), it enters trades.
Label Amount Direction Open price Close price Profit/Loss Profit/Loss in pips Open date Close date Comment
xx 0.02401 BUY 361.743101 371.754 240361.68 1001.1 2020-01-06 10:26:42 2020-01-10 13:23:03
xy 0.024067 BUY 373.722017 383.754 241439.73 1003.2 2020-01-10 15:03:23 2020-01-13 17:16:35

but when I run it in a forward demo, I get these errors
10:47:11 Unable to process the order. Validation failure. Invalid order reason=Amount should be divisible by 10
10:47:11 Order SELL 335 SUGAR.CMD/USD @ MKT is sent at 2020-09-23 10:47:18.512 GMT by the strategy "xyz": from the local computer

 Post subject: Re: Historical Tester allows unrealistic entries in CFD Post rating: 0   New post Posted: Tue 20 Oct, 2020, 16:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6118

Tester would not check for min amount. Strategy can do it by itself, here is how:
https://www.dukascopy.com/wiki/en/devel ... er-amounts
https://www.dukascopy.com/client/javado ... deAmount--



Jump to:  

  © 1998-2011 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