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.

migrating problems JForex3
 Post subject: migrating problems JForex3 Post rating: 0   New post Posted: Sun 19 Nov, 2017, 17:59 

User rating: 1
Joined: Mon 16 Jul, 2012, 04:14
Posts: 31
Hello support! The following problems arose when migrating to the platform JForex3.
1. When drawing a custom indicator, the parameter startIndex = 0 was passed to the method calculate earlier JForex2. Now in JForex3 startIndex!= 0 probably =getLookback. Indicators are not compatible and as a result an error is issued!
2. Levels in the indicator are not saved when going to the new platform!
What is the reason?


 
 Post subject: Re: migrating problems JForex3 Post rating: 0   New post Posted: Tue 21 Nov, 2017, 16:19 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide code that would reproduce the problem.


 
 Post subject: Re: migrating problems JForex3 Post rating: 0   New post Posted: Thu 23 Nov, 2017, 18:13 

User rating: 1
Joined: Mon 16 Jul, 2012, 04:14
Posts: 31
Hello support! I checked that similar problems arise in the simplest example
https://www.dukascopy.com/wiki/files/9b3d27d020edff568a99b15876a8b673.txt
in wiki topic Simple custom indicator
https://www.dukascopy.com/wiki/en/development/strategy-api/indicators/use-custom-indicator-in-strategies.
Before code
 //calculating startIndex taking into account lookback value
        if (startIndex - getLookback() < 0) {
            startIndex -= startIndex - getLookback();
        }

value startIndex ==0 in JForex2 and startIndex ==getLookback in Jforex3.
Also indicator levels are not preserved when passing from JForex2 a to JForex3, and vice versa.


 
 Post subject: Re: migrating problems JForex3 Post rating: 0   New post Posted: Fri 24 Nov, 2017, 08:55 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We were unable to reproduce this issue.


 

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