Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (monk12, Quad), 830 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to generate SIGNALS file with more than 20 input params? #467782
08/31/17 07:30
08/31/17 07:30
Joined: Feb 2017
Posts: 369
D
Dalla Offline OP
Senior Member
Dalla  Offline OP
Senior Member
D

Joined: Feb 2017
Posts: 369
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?

Re: How to generate SIGNALS file with more than 20 input params? [Re: Dalla] #467813
09/02/17 09:13
09/02/17 09:13
Joined: Aug 2017
Posts: 40
J
johnnyp Offline
Newbie
johnnyp  Offline
Newbie
J

Joined: Aug 2017
Posts: 40
I am doing something similar using sprintf and file_append to write a csv file with the nbar movement as the target.

I can't easily see how write a custom csv file using the result of the next trade as the target.

Too many features leads to a risk of overfitting, but you do need to select which signals to use. I would suggest writing several scripts to export different sets of 20 signals. Then you can run feature selection on those in order to choose the best 20 signals for the final version.

Re: How to generate SIGNALS file with more than 20 input params? [Re: johnnyp] #467873
09/05/17 09:52
09/05/17 09:52
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
The next trade can currently not be used as a target with more than 20 signals. But an arbitrary number of signals will be implemented in one of the next Zorro versions, in a similar way as suggested by Dalla.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1