Missing packages in SDK

Shtick Hustler

Well-known member
Joined
Oct 15, 2020
Posts
103
Likes
44
I've been working with the sample project and also downloaded the study source code.

I've been able to create an indicator. But on trying to create a strategy from that indicator (using a Strat in study source as a template) I notice some package references that don't seem to be available from the sample project mwave_sdk.jar.

Here are a couple:
import com.motivewave.platform.study
import com.motivewave.platform.sdk.common.study.general.Utility


How do we access these?
 

Shtick Hustler

Well-known member
Joined
Oct 15, 2020
Posts
103
Likes
44
I assume the SDK I should use is the one included in sample project?

If so, I just re-downloaded it and the package refs are still not recognized

459
 

Spin

Well-known member
Joined
May 22, 2019
Posts
472
Likes
188
Did you add the SDK-files to your "Referenced Libraries" ?


460
 

Shtick Hustler

Well-known member
Joined
Oct 15, 2020
Posts
103
Likes
44
My bad, got confused. 😳

I thought these import statements were referring to the main SDK jar packages:
import com.motivewave.platform.study​
import com.motivewave.platform.sdk.common.study.general.Utility​
But, no, they are referring to the structure of the MotiveWaveStudies100520.zip package itself:

465

Just need to include this package in my project to access them.

😎
 

Shtick Hustler

Well-known member
Joined
Oct 15, 2020
Posts
103
Likes
44
Well, I was able to resolve all package references in MotiveWaveStudies100520.zip, save for one, which is located in file Instrument/InstrumentGraph.java:

Java:
package com.motivewave.platform.study.instrument;

import com.motivewave.platform.databean.MWInstrument;

Not in the SDK, not in MotiveWaveStudies100520 package 🧐

databean.MWInstrument looks like it should be in MotiveWaveStudies100520, but isn't.
 

Shtick Hustler

Well-known member
Joined
Oct 15, 2020
Posts
103
Likes
44
One more thing...

Many MotiveWaveStudies100520 class files have references to
Java:
import com.motivewave.common.Util

which doesn't exist, but looks like it was renamed at some point to:
Java:
import com.motivewave.platform.sdk.common.Util

which does.

MW may want to fix these 2 issues in this code.
 

Spin

Well-known member
Joined
May 22, 2019
Posts
472
Likes
188
I agree.

It seems there are some missing files/packages in the mwave_sdk.jar.

I cannot compile SpeedGauge and InstrumentGraph (and I had to correct the reference to Util, as in previous post by @Shtick Hustler )

482

Not a big issue for me, but may want to rectify this one day :)
 
Top