Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,175 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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