Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MLP, hidden layer #442414
06/21/14 06:47
06/21/14 06:47
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
adviseLong/Short offers PERCEPTRON which is essentially a NN with 1 layer of 1 neuron.

Suggest MLP with hidden layer
Suggest non-linear activation function for hidden layer, namely sigmoid.

Re: MLP, hidden layer [Re: GPEngine] #442415
06/21/14 06:53
06/21/14 06:53
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California

Suggest that adviseLong includes a centering/scaling feature so that inputs and targets do not have to be in -100/+100 range for sane behavior

Suggest adviseLong/Short returns var, not int.
Result should be a gradient, not a flip between two values. graph of a predicted sine wave model is attached. advise PERECPTRON turns this sine wave into a square wave

Last edited by GPEngine; 06/21/14 07:02.
Re: MLP, hidden layer [Re: GPEngine] #442416
06/21/14 07:07
06/21/14 07:07
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
hmm. can't attach. Well, you get the idea:

Code:
function run() {
  set(RULES);
  set(TESTNOW+PLOTNOW);
  StartDate = 20140401;
  EndDate = 20140515;
  asset("GBP/USD");
  var v = genSine(30, 50) * 200. - 100.;
  plot("v", v, NEW+LINE, BLUE);

  int pred = adviseLong(PERCEPTRON, v, v);
  plot("pred", pred, NEW+LINE, BLUE);

}


Re: MLP, hidden layer [Re: GPEngine] #442462
06/23/14 10:03
06/23/14 10:03
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, that makes sense. The hidden layer is not so quick to realize as we then have to implement a neural net library instead of a simple formula. But an analogue output of the perceptron should be relatively easy.

Re: MLP, hidden layer [Re: jcl] #449027
02/28/15 03:44
02/28/15 03:44
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
There were several suggestions in my post that did not get a direct response. I assume you saw the others.

Re: MLP, hidden layer [Re: GPEngine] #449029
02/28/15 04:05
02/28/15 04:05
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Attachment showing adviseLong struggling to model a trivial identity function.
square_advice_GBPUSD.png

Last edited by GPEngine; 02/28/15 04:06.
Re: MLP, hidden layer [Re: GPEngine] #449030
02/28/15 08:14
02/28/15 08:14
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
With a digital signal, a sine wave can naturally only be predicted with a square wave.

As to my knowledge, no consistently profitable system has so far been realized with a neural net, despite lots of various attempts. This is of course even more true for perceptrons, hidden layer or not. So I would not have much hope of success with an improved perceptron. More interesting for trade systems are the pattern finder and the decision tree. The pattern finder is interesting because mildly profitable systems have been realized with it by some technical traders, f.i. the Asirikuy group. And decision trees have little been used so far for trading, so they are a new area and experiments with them could be interesting.

Re: MLP, hidden layer [Re: jcl] #449036
02/28/15 16:12
02/28/15 16:12
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Henne-Ei-Problem.

(Which came first, the chicken or the egg?)

Last edited by GPEngine; 02/28/15 16:15.

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