|
ITesterClient defaults to 50000 |
sinusgamma
|
Post subject: ITesterClient defaults to 50000 |
Post rating: 0
|
Posted: Mon 06 Nov, 2017, 12:17
|
|
User rating: 2
Joined: Tue 11 Jul, 2017, 09:30 Posts: 24 Location: HungaryHungary
|
Should be in Automated Trading topic, sorry. I am using the latest versions. There must be some severe bug, even the example files generate it. I used the MA_Play and MainTester classes from singlejartest. I only changed the initial deposite: client.setInitialDeposit(Instrument.EURUSD.getSecondaryJFCurrency(), 90000); The initial deposite doesn't matter, it always defaults to 50000: 2017-11-06 11:59:07.470 INFO Main - Starting strategy 2017-11-06 11:59:07.527 INFO Main - Strategy started: 0 2017-11-06 11:59:07.528 INFO Main - Getting prices before start time 2017-11-06 11:59:07.608 INFO Main - Creating data loading threads 2017-11-06 11:59:07.613 INFO Main - Getting prices before start time 2017-11-06 11:59:07.667 WARN WLabelData - White Label Image is not received 2017-11-06 11:59:07.681 INFO Main - Filling in-progress candles 2017-11-06 11:59:08.140 INFO Main - Executing onStart Started
2017-11-06 11:59:08.143 INFO Main - Running 2017-11-06 11:59:08.929 INFO Main - Running, Fri 2017.11.03 00:30 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.070 INFO Main - Running, Fri 2017.11.03 01:00 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.148 INFO Main - Running, Fri 2017.11.03 01:30 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.211 INFO Main - Running, Fri 2017.11.03 02:00 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.289 INFO Main - Running, Fri 2017.11.03 02:30 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.351 INFO Main - Running, Fri 2017.11.03 03:00 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.398 INFO Main - Running, Fri 2017.11.03 03:30 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.445 INFO Main - Running, Fri 2017.11.03 04:00 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.476 INFO Main - Running, Fri 2017.11.03 04:30 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.535 INFO Main - Running, Fri 2017.11.03 05:00 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.586 INFO Main - Running, Fri 2017.11.03 05:30 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.649 INFO Main - Running, Fri 2017.11.03 06:00 Eq: 50,000.00 UoL: .00% 2017-11-06 11:59:09.740 INFO Main - Running, Fri 2017.11.03 06:30 Eq: 50,000.00 UoL: .00%
Attachments: |
Capture.JPG [125.29 KiB]
Downloaded 568 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
|
sinusgamma
|
Post subject: Re: ITesterClient defaults to 50000 |
Post rating: 0
|
Posted: Tue 07 Nov, 2017, 08:20
|
|
User rating: 2
Joined: Tue 11 Jul, 2017, 09:30 Posts: 24 Location: HungaryHungary
|
Dear Support,
Can you verify this bug, or only my system has some failure?
Thank you.
|
|
|
|
|
sinusgamma
|
Post subject: Re: ITesterClient defaults to 50000 |
Post rating: 0
|
Posted: Tue 07 Nov, 2017, 12:56
|
|
User rating: 2
Joined: Tue 11 Jul, 2017, 09:30 Posts: 24 Location: HungaryHungary
|
As I see the client.setInitialDeposit(Instrument.EURUSD.getSecondaryJFCurrency(), 10000); unable to pass the initial deposit to the tested strategy. If you start the strategy after setting the initial deposit for test, and call System.out.println("EQUITY: " + context.getAccount().getEquity()); in onStart() method, you get: Quote: EQUITY: 0.0 . And later in onTick method the equity defaults to 50000. Or I am wrong? Is there an other way to set initial amount to strategy during test? Thanks
|
|
|
|
|
sinusgamma
|
Post subject: Re: ITesterClient defaults to 50000 |
Post rating: 0
|
Posted: Mon 13 Nov, 2017, 12:09
|
|
User rating: 2
Joined: Tue 11 Jul, 2017, 09:30 Posts: 24 Location: HungaryHungary
|
Please, can somebody verify this bug?
(and can I transfer this topic to "Automated trading" ?)
Thanks
|
|
|
|
|
sinusgamma
|
Post subject: Re: ITesterClient defaults to 50000 |
Post rating: 0
|
Posted: Tue 14 Nov, 2017, 09:22
|
|
User rating: 2
Joined: Tue 11 Jul, 2017, 09:30 Posts: 24 Location: HungaryHungary
|
With DDS2-jClient-JForex 3.2.19 / JForex-API 2.13.43 everything is ok. Thanks
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|