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 (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
adviseLong input limit 20 #453242
07/13/15 16:23
07/13/15 16:23
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Quote:
http://zorro-trader.com/manual/en/advisor.htm
For training several objectives with the NEURAL method, pass the further objectives as Signal parameters to the advise function. 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.
Noted. Simple enough. But can this be combined with Objective = 0 somehow?
Quote:
For training trade results, call the advise function with Objective = 0 just before entering a trade; Zorro then uses the trade result for learning the rules...
It doesn't keep the bar ordering. Ordering depends on the trades' end time. By that time the contents of the global array have been overwritten. I'm about to use bar timestamps to restore an order to the trades and make it possible to associate inputs and outputs. Am I overlooking an easy solution here?

Re: adviseLong input limit 20 [Re: GPEngine] #453248
07/14/15 07:53
07/14/15 07:53
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You must somehow store the array until the trade exits. For instance, you could use series for all signals. Then call the advise function at the exit of the trade instead of the entry, and send the signal values from the trade entry bar to the NN.

Re: adviseLong input limit 20 [Re: jcl] #453252
07/14/15 15:14
07/14/15 15:14
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I like that.

But this is tricky and there is great room for mistakes. I want you to be aware. For example, if Entry and EntryTime are used, the position may not be entered in the same bar it is placed. In that case, TradeTime can't help you. There is no such thing as TradeOrderPlacedTime. For that, I need to store the bar number in a TradeVar myself.

Re: adviseLong input limit 20 [Re: GPEngine] #453266
07/15/15 14:07
07/15/15 14:07
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The series index with the trade opening bar is (Bar-TradeBarOpen).

Re: adviseLong input limit 20 [Re: jcl] #453270
07/15/15 15:12
07/15/15 15:12
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Right. But that may not be the same as the bar where the trade order was placed.

Re: adviseLong input limit 20 [Re: GPEngine] #453274
07/15/15 17:06
07/15/15 17:06
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That's right - but don't you normally need the signals at trade open, rather than at trade placement? Anyway for the signals at placement you must indeed store the Bar value in a trade variable.

Re: adviseLong input limit 20 [Re: jcl] #453278
07/16/15 04:57
07/16/15 04:57
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Entry can be expressed in relative terms -- as distance from the close price of the current bar. At a different bar, the effect is different.


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