Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by jcl. 10/27/26 10:34
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (JeyKey II), 7,576 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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: 28,144
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,144
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 | 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