I want to trigger trades with two predicted values.

The manual states:

Quote

For training multiple objectives with the NEURAL method, pass the further objectives as Signal parameters to the advise function. For debugging, use the R sink function for printing R output to a file.


Now it's super clear how to pass the second objective into the R session, but it seems, there is no convenient way to get the 2-dimensional prediction back to Zorro through the advise functions.

I'm seeing three options here, how I must alter the neural function:

a) change the type of the function to a 2-dim array -> probably causing all kinds of new problems
b) declare a global array in which the neural function writes its predictions.
c) training two different models, one with adviseLong and one with adviseShort (I'd like to avoid that because it will use double the time to train a single model)

What's the easiest way? Is there a better way?