• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

my first maven build - errors

 
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just a quick question before I waste more of my time................

SymbolicRegression.java imports


Under my new file structure e.g. C:\Directional_Changes\dc\src\main\java\dc\ga
what changes should I be making to the above imports ?

Bob M
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so I am bringing in one java file at a time

[code]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project dc: Compilation failure: Compilation failure:
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurvePerfectForesight.java:[29,16] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurvePerfectForesight
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveClassification.java:[20,16] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurveClassification
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurvePerfectForesight.java:[431,34] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurvePerfectForesight
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurvePerfectForesight.java:[433,25] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurvePerfectForesight
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurvePerfectForesight.java:[433,46] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurvePerfectForesight
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/CommodityChannelIndexIndicator.java:[49,51] no suitable constructor found for TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries,eu.verdelhan.ta4j.TimeSeries)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/CommodityChannelIndexIndicator.java:[53,63] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/CommodityChannelIndexIndicator.java:[54,37] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/AroonIndicator.java:[51,51] no suitable constructor found for TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries,eu.verdelhan.ta4j.TimeSeries)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/AroonIndicator.java:[55,63] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/AroonIndicator.java:[56,37] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveClassification.java:[78,35] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurveClassification
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveClassification.java:[86,25] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurveClassification
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveClassification.java:[86,46] cannot find symbol
[ERROR]   symbol:   class Orders
[ERROR]   location: class misc.DCCurveClassification
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/MovingMomentum.java:[52,51] no suitable constructor found for TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries,eu.verdelhan.ta4j.TimeSeries)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/MovingMomentum.java:[57,63] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/MovingMomentum.java:[58,37] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/StochOscillatorKIndicator.java:[53,51] no suitable constructor found for TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries,eu.verdelhan.ta4j.TimeSeries)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/StochOscillatorKIndicator.java:[57,63] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/StochOscillatorKIndicator.java:[58,37] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/ExponentialMovingAverageFX.java:[47,51] no suitable constructor found for TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries,eu.verdelhan.ta4j.TimeSeries)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/ExponentialMovingAverageFX.java:[51,63] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/ExponentialMovingAverageFX.java:[52,37] cannot find symbol
[ERROR]   symbol:   method getOrders()
[ERROR]   location: variable tradingRecord of type eu.verdelhan.ta4j.TradingRecord
[ERROR] /c:/Directional_Changes/dc/src/main/java/misc/technicalAnalysis/WilliamR.java:[52,51] no suitable constructor found for TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries,eu.verdelhan.ta4j.TimeSeries)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor eu.verdelhan.ta4j.TimeSeriesManager.TimeSeriesManager(eu.verdelhan.ta4j.TimeSeries) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[\code]

I seem to have big problems with the likes of method getOrders() and eu.verdelhan.ta4j in general

Bob M

p.s. 0.8 version of eu.verdelhan.ta4j seems a better choice of version
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A communication from the paper's coder

"Hi Bob,

Thanks for your email. I have now updated the repository.
Please get the latest pull and the compile error should get resolved.

Regarding Tick-data question.
I experimented with Forex data that has bid and ask price.
I am not using tick-data in this work, I am using 10 mins data.
he layout of the data is timestamp(date and time) which is when the snapshot was taking, followed by bid and ask as you rightly mentioned.

Regards,

Adesola"

 
Saloon Keeper
Posts: 13280
292
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, that's really neat of them.

I'll take a look at it later.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and...............

"Hi Bob,

You can run the program from eclipse using the below command. Unfortunately, I do not own the data, you’ll need to ask for permission from Dr Kampouridis, my supervisor in the project.



Thanks,

Adesola"





 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My thinking is that once I setup a test dataset, we should be good to go

Bob M

There are datasets under the build folder

a mixture of March 2016 - Feb 2017 - 2 prices ( I think these are in error! - should be 4 prices)

and June 2013 - May 2014 - 4 prices

yet another area where confusion exists !!!

my understanding is there should be 4 prices : OpeningBid, OpeningAsk, Closing Bid and ClosingAsk
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tried the following arguments: (with SymbolicRegression.java)

C:\Users\rgmat\Desktop\Directional Changes\SymbolicRegression\build\jar\datasets\10min\USD_ZAR\fx-spot_USD_ZAR_10min_201604.txt:fx-spot_USD_ZAR_10min_201604:0:20:21:27:GP:true:false:0:7:false:Prune 700 30 7 0.7 5

and got......
Error message
6 parameters: <file path:file name:training index start:training index end:test index start:test index end>

These 6 parameters have nothing to do with the suggested arguments - so don't know what is going on ?

Bob M

Update:

new arguments:-

Datasets\USD_ZAR\fx-spot_USD_ZAR_10min_201604.txt:fx-spot_USD_ZAR_10min_201604:0:20:21:27:GP:true:false:0:7:false:Prune 700 30 7 0.7 5

Getting part way thru.......stopping at autoweka code

Error message:- (part of)

Jun 13, 2021 7:02:36 PM com.github.fommil.netlib.ARPACK <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemARPACK
Jun 13, 2021 7:02:36 PM com.github.fommil.netlib.ARPACK <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefARPACK
Instance 877 event count 877
starting run 0 autoweka for thresholdString0.00017500at:13/06/2021 19:02:38
2021-06-13 19:02:38.696 [main] WARN Util - Could not auto-detect the location of your Auto-WEKA install - have you moved the classes away from the 'params' diectory?
2021-06-13 19:02:38.697 [main] WARN ExperimentConstructor - No property file .\autoweka.smac.SMACExperimentConstructor.properties.properties found
java.lang.RuntimeException: .\params\attribselection\eval\ is not a valid directory
at autoweka.ApplicabilityTester.getApplicable(ApplicabilityTester.java:107)
at autoweka.ApplicabilityTester.getApplicableAttributeEvaluators(ApplicabilityTester.java:87)
at autoweka.ExperimentConstructor.loadAttributeSelectors(ExperimentConstructor.java:320)
at autoweka.ExperimentConstructor.run(ExperimentConstructor.java:205)
at autoweka.ExperimentConstructor.buildSingle(ExperimentConstructor.java:158)
at misc.myAutoWeka.buildClassifier(myAutoWeka.java:347)
at dc.ga.PreProcess.autoClassifyTraining(PreProcess.java:676)
at dc.ga.PreProcess.runAutoWeka(PreProcess.java:1775)
at misc.SymbolicRegression.<init>(SymbolicRegression.java:784)
at misc.SymbolicRegression.main(SymbolicRegression.java:3444)
An error occured
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Stephan

I now have a reasonably clean Eclipse project and am turning my attention back to a maven build

I have the same java files as I have in the Eclipse project

When I try a maven build I get many errors involving the package eu.verdelhan.ta4j

Does this suggest that my pom file dependencies for this package are wrongly setup ?

Bob M
Dunedin
New Zealand
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic