Missing packages in SDK

Joined
Oct 15, 2020
Posts
22
Likes
5
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?
 

Spin

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


460
 
Joined
Oct 15, 2020
Posts
22
Likes
5
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.

😎
 
Joined
Oct 15, 2020
Posts
22
Likes
5
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.
 
Joined
Oct 15, 2020
Posts
22
Likes
5
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
167
Likes
28
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