Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, AndrewAMD), 822 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
adviseExitLong adviseExitShort #448775
02/21/15 03:08
02/21/15 03:08
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
The thresholds for exiting an already open position may be different for those for reversing the position. and rules for such should be established separately. Essentially you may not always want to be Long or Short but sometimes may want to be Neutral.
Is there a way to train for this behavior in the current version?

Re: adviseExitLong adviseExitShort [Re: GPEngine] #448792
02/21/15 17:05
02/21/15 17:05
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The result of exiting a position obviously depends on when you've entered it. What exactly do you want to be trained here?

Re: adviseExitLong adviseExitShort [Re: jcl] #448796
02/21/15 17:22
02/21/15 17:22
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Deciding whether to enter a trade is only part of the strategy. The other part is deciding whether to stay in a trade. One can use the Trade params, Stop, Trail, etc. but those are set at the beginning, when the trade is ordered. They do not take any signals into account.

Re: adviseExitLong adviseExitShort [Re: GPEngine] #448798
02/21/15 17:55
02/21/15 17:55
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
As it stands now, if you don't set some kind of exit conditions for the "next trade" after adviseLong/Short, your training targets are based on the performance of never-ending positions. However, some strategies don't use exit conditions and instead they use signals that come in the future. i.e. Workshop4_2.

This is what I had in mind but I'm sure you could think of a better solution that is simpler and fits with Zorro's structure.

- adviseLong is a boolean function over the input signals which tries to be true when it would be wise to enter a long position.
- adviseExitLong is also a boolean function over the input signals. It tries to be true when it would be wise to exit any existing long positions.
- The two functions are not independent. adviseExitLong affects the trade performance, in other words the training targets, of adviseLong.

Re: adviseExitLong adviseExitShort [Re: GPEngine] #448801
02/21/15 18:12
02/21/15 18:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That is the problem that I meant: When shall adviseExitLong be true and when false? I'm at a loss here what this function should return.

How do you define the goodness of an exit without having an open trade?

Re: adviseExitLong adviseExitShort [Re: jcl] #448802
02/21/15 19:20
02/21/15 19:20
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I don't have a clear proposal. I'm just stating a problem.

Re: adviseExitLong adviseExitShort [Re: GPEngine] #448819
02/22/15 09:10
02/22/15 09:10
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That is the problem of learning algorithms: You need some classification criteria. In the examples, timed exits are normally used. So the criteria is just the profit at a certain time after entry. But you can also do it the other way around. If you have a fixed entry condition, you can use the same advise functions for generating exit rules. I only see no practical method for generating entry and exit rules separately from each other.

Re: adviseExitLong adviseExitShort [Re: jcl] #448830
02/22/15 17:37
02/22/15 17:37
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
First, how to use adviseLong for generating exit rules?

You have a clear point here. Still, I would like to play with the idea a bit. You provide exactly 2 advise methods, for Long and Short. Can I have more?

Re: adviseExitLong adviseExitShort [Re: GPEngine] #448831
02/22/15 17:59
02/22/15 17:59
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You have two per algo, so by adding more algos you can have an unlimited number of advise methods for the same asset. "Long" and "Short" are just names, both functions behave exactly identical as to my knowledge. So you could use adviseLong for entry and adviseShort for exit, for example.

A way for generating an exit rule would be to write some code for classifying the exit by peeking into the future. In the training phase you can then pass the current classification value to the Prediction parameter at any bar.

Re: adviseExitLong adviseExitShort [Re: jcl] #448983
02/26/15 23:31
02/26/15 23:31
Joined: Dec 2013
Posts: 13
T
tvas Offline
Newbie
tvas  Offline
Newbie
T

Joined: Dec 2013
Posts: 13
adviseLong, adviseShort - no shit man laugh laugh I bet that even jcl is not so crazy to use the current implementation of those laugh

Any profitable systems out there using machine learning and not getting creamed when trading in real? Would appreciate to see a proof that finally this stuff bears some fruits. But so far I have seen only terrible results from it - adviseLong, adviseShort, account gone laugh

Let's finally bring into Zorro some neural network capabilities or even better SVM engine (or not because finding the right SVM kernel is a bit too tough problem to solve). Then we could feed them with all the other stuff which we already got and finally Zorro will take from the rich and give to the poor laugh laugh

Don't forget to check my results here: http://www.myfxbook.com/members/4Xconsult/show-case-1/1164183

If I get creamed some day you can laugh about me laugh but at least I am standing here and sharing what I've got.

Jcl, why don't you share some adiseLong, adviseShort kinda strategy results?

Page 1 of 2 1 2

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