Dear Support,
I am trying to create a class that is similar to a C/C++ struct. I would like to use this class in my strategy, but I don`t know how to do this. My Java knowledge is limited, so probably I miss some concept, but maybe the strategy class implementation doesn`t allow such things...
This is the class I want to use in the strategy:
package dukascopy.strategies.indicators;
public class myOrder
{
public String label;
public double maxLoss;
public int mergeCount;
}
I tried to use this class in my strategy like this:
public class myStrategy extends myOrder implements IStrategy
But there is an error saying: myOrder cannot be resolved to a type
For the above example I used the strategy editor of the platform. If I use Eclipse, and configure it as described in the wiki (use the JForex SDK, etc...), I can however use and compile that same strategy, and can run it with the TesterMainGUIMode class.
The only difference I can see is the directory layout between the platform and Eclipse. In Eclipse I can see the files (myStrategy.java and myOrder.java) under /src/dukascopy.startegies.indicators/. In the platform both files are in the <User>/Documents/JForex/Strategies/ directory.
As I mentioned, my Java knowledge is limited, so I might miss some basic concept, but please help me out here.