I agree with you, that the API is not very well defined. For example, see the link below:

https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=473867#Post473867

But in case with Dukascopy you can port your strategy to Java and execute it directly inside the JForex environment.