Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
In Test, adviseLong sometimes returns 0 without calling neural #453061
07/06/15 16:45
07/06/15 16:45
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I have a strategy with RULES and adviseLong(NEURAL,...)

In my neural function, when mode == NEURAL_PREDICT, the only possible return values are 1, -1, and 0.00001.

Nevertheless, in Test mode, the return value of adviseLong is sometimes 0. So, adviseLong sometimes returns without calling neural(mode=NEURAL_PREDICT,...). What is it doing instead?

I added a print statement to the top of neural() and found it is not called at all in these cases. Why does adviseLong sometimes not bother to call neural() and just return arbitrary zero?

From the manual:
Quote:
NEURAL_PREDICT model, numSignals, Data Return the value predicted by the model using the signals contained in the Data double array. The function is called by an advise call in [Test] and [Trade] mode.

Re: In Test, adviseLong sometimes returns 0 without calling neural [Re: GPEngine] #453074
07/07/15 07:11
07/07/15 07:11
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
It returns zero when trading is disabled. F.i. in the lookback period, at weekend, and in the inactive bars of a time frame.

Re: In Test, adviseLong sometimes returns 0 without calling neural [Re: jcl] #453084
07/07/15 13:18
07/07/15 13:18
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Thanks.


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