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.

Custom Indicator Strategy
 Post subject: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 09:21 

User rating: 0
Joined: Fri 25 Nov, 2011, 02:49
Posts: 17
Location: Malaysia,
Hi I get the following error when trying to compile the custom indicator strategy on wiki....

2012-01-16 08:17:53 The method registerCustomIndicator(File) in the type IIndicators is not applicable for the arguments (Class<IIndicator>)
2012-01-16 08:17:53 ^^^^^^^^^^^^^^^^^^^^^^^
2012-01-16 08:17:53 indicators.registerCustomIndicator(IIndicator.class);
2012-01-16 08:17:53 1. ERROR in /var/folders/fh/71c6m11x2hz8k8zccns5b_vh0000gn/T/jfxide/tmp/CustomIndicatorStrategy2.java (at line 38)

Something I have done wrong?


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Which version of JForex-API are you using? Approach indicators.registerCustomIndicator(IIndicator.class) is available with JForex-API 2.6.38.


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:38 

User rating: 0
Joined: Fri 25 Nov, 2011, 02:49
Posts: 17
Location: Malaysia,
I am latest version of client...


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
DEMO or LIVE?


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:45 

User rating: 0
Joined: Fri 25 Nov, 2011, 02:49
Posts: 17
Location: Malaysia,
Live


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
LIVE uses JForex-API 2.6.33. Thus, on LIVE on you can use only the approach with an indicator within a compiled .jfx file.


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:52 

User rating: 0
Joined: Fri 25 Nov, 2011, 02:49
Posts: 17
Location: Malaysia,
Ok thanks I will try that. .. Do you know if the Spearman Index indicator got done ?


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 15:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, it is available in JForex Standalone API (can be found in JForexClientLibrary\libs\JForex-API-2.6.53-sources\com\dukascopy\indicators\RCIIndicator.java) and will be available in JForex DEMO client with the next release. If you wish to use the indicator already then add it as a custom indicator following the instructions:
https://www.dukascopy.com/wiki/#Create_an_indicator
Attachment:
RCIIndicator.java [4.98 KiB]
Downloaded 314 times


 
 Post subject: Re: Custom Indicator Strategy Post rating: 0   New post Posted: Mon 16 Jan, 2012, 15:11 

User rating: 0
Joined: Fri 25 Nov, 2011, 02:49
Posts: 17
Location: Malaysia,
Great thanks


 

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