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.

Filter problem
 Post subject: Filter problem Post rating: 0   New post Posted: Sat 21 Sep, 2013, 00:36 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
private Filter indicatorFilter = Filter.WEEKENDS;

The above is fine in my current strategy (in Netbeans)

However, when I introduce weka (mining suite) which also has filters I get the following error

cannot find symbol [variable WEEKENDS] in location [class Filter]

I suspect there is ambiguity because both dukascopy API and weka.API use filters

What do I do to tweek the above one line to show that I am referring to dukascopy API?

Bob M


 
 Post subject: Re: Filter problem Post rating: 2   New post Posted: Sat 21 Sep, 2013, 10:46 
User avatar

User rating: 70
Joined: Sat 22 Sep, 2012, 17:43
Posts: 118
Location: Brazil, Fortaleza, Ceará
Your suspicion is spot on, package ambiguity exists with what looks like the weka Filter type taking precedence on the classpath.
Move forward by fully qualifying your use of the conflicting type as follows:

com.dukascopy.api.Filter
private com.dukascopy.api.Filter indicatorFilter = com.dukascopy.api.Filter.WEEKENDS;


All the best


 
 Post subject: Re: Filter problem Post rating: 0   New post Posted: Sun 22 Sep, 2013, 00:01 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Thank you

Bob M


 

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