Gamestudio Links
Zorro Links
Newest Posts
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 (TedMar), 1,420 guests, and 3 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
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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