Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/29/25 14:06
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
ZorroFix. ini /data and /log path
by Martin_HH. 12/19/25 21:02
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (vicknick), 51,356 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
More adviseLong/adviseShort questions #457439
01/18/16 13:11
01/18/16 13:11
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Is it possible to use separate calls to adviseLong(NEURAL...) and adviseShort(NEURAL...) in order to train different machine learning models on different user-defined market regimes? For example, train one model for an uptrending market and a different model for a downtrending market.

For example, I could do this:
Code:
if (rising(filter)) {
  
  var Predict = adviseLong(NEURAL, 
    Objective, Signal1, Signal2);
	if (Predict > 0) enterLong();
	else if (Predict < 0) enterShort();
  }
  
 else if (falling(filter)) {
	 var Predict = adviseShort(NEURAL,
	if (Predict > 0) enterLong();
	else if (Predict < 0) enterShort();
  }



However, this obviously won't produce the intended result since models are saved and loaded by the NEURAL function according to asset, algo and loop calls, rather than according to changes to the regime detection indicator.

How much flexibility does the user have over the NEURAL function? Could it be modified to achieve this idea? If so, can you suggest an approach?


Thanks!

Re: More adviseLong/adviseShort questions [Re: boatman] #457443
01/18/16 15:12
01/18/16 15:12
Joined: Jul 2000
Posts: 28,044
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,044
Frankfurt
Yes, adviseLong and adviseShort are just for training two different models. They need not be related to going long or short. They also have a different model number. So you can use them in any way you want.


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