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
4 registered members (AndrewAMD, bigsmack, 7th_zorro, dr_panther), 1,364 guests, and 7 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
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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