One way would be to use a COM/Java bridge to expose your Java object as a COM object. There are a number of libraries available, both paid and open source.
The best documented, and offering a free trial, is ComfyJ. But they're not cheap if you decide to buy. http://www.teamdev.com/comfyj/index.jsf The advantage of using a COM/Java bridge is that you can use the COM object directly within your AFL and pass whatever arrays you need without ever touching C++. Using a bridge wont perform as well as a C++ plugin. But, in most cases the difference won't matter. Mike --- In [email protected], "murphydog001" <cr...@...> wrote: > > Hi, > > I have coded an algorythm in Java that I would like to call from Amibroker. > > Ideally AB would pass some data (two arrays) to Java, where some work is done > on it and a result is passed back (a boolean value). > > Is there a simple way to do this? I understand it can be done using C++ and > JavaScript, but I can't seem to find any guidance on doing it in Java. > > I could write the array to a file, and then read it into my app, but I'd > prefer to do it a bit more elegantly. > > I'm not particularly experienced with C++, and I'm using some specific > libraries in Java. I'm not a particular whiz with Java either, but reasonably > comfortable. > > Before I go any further with my java app, is this achievable without > significant effort (ie:would I be better to learn C++ and try to find the > stats libraries I need?) > > > Regards > Craig >
