I'm currently experimenting with the R bridge and Keras/Tensorflow.
Was wondering how I can generate something like a signals file (adviseLong(SIGNALS)) using more than 20 input variables.
The manual is pretty clear on how to call TRAIN/LEARN.

"For using more than 20 signals, collect them in a global array and send them to the machine learning algorithm with NEURAL_LEARN or NEURAL_TRAIN."

But what about generating a SIGNALS file, and using the next trade as target?
What I am trying to do is really somehing like this (I know this isn't valid code)

Code:
var params[50] = {1,2,3,4,...,50}
adviseLong(SIGNALS+BALANCED,0,params);


enterLong();

What can I do to generate a file that has the same format as the SIGNALS file, using more than 20 inputs and using the result of the next trade as target?