I am trying to develop a strategy and for the purposes of simplification, I am creating a custom Java class that will handle some of the functions. Because i didnt know any better I made a blank strategy file and started adding code as you would a normal Java class file. However when i try to create an object from my class in my main strategy file it does not seem to recognize it. i get the
"CandleIdentifier cannot be resolved to type" error, where CandleIdentifier is my custom class.
How would i go about linking these to files. Thank You
API Support
Post subject: Re: How to add a custom Java Class to my Strategy
I know that this is not what you have asked (as you want to separate the strategy's file and your class's file), but if the class is not that big, you can also embed it in the strategy class, like this:
public class Strategy1 implements IStrategy { ... private class myClass {
}
public void onStart(final IContext context) throws JFException { ... }