Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,529 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Print Thread
Rate Thread
Z2 - Abnormal exit? #431517
10/17/13 16:23
10/17/13 16:23
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
My Z2 just went long USOil, algo BB at 100.14, and then immediately exited it for a loss at 100.15. Does this make sense?

I checked acidburn's Z strategies online demo (thanks again! laugh ) and the long is there, but no exit - just a risk step-down message...

Thanks.

Re: Z2 - Abnormal exit? [Re: DdlV] #431525
10/17/13 17:24
10/17/13 17:24
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
Our own version has not yet opened USOil, but will probably in the next bar. There can be several reasons for a exit, but you can see the reason from the message in the window.

Re: Z2 - Abnormal exit? [Re: jcl] #431527
10/17/13 17:38
10/17/13 17:38
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Sorry, my oversight - the message is Stop loss - how can that be?!

Here are the relevant lines from the window:

Code:
[Thu 17.10. 16:13]  ...
[USOil:BB:L3380] Long 1@100.14 Risk 287
[USOil:BB:L3380] Stop loss
[USOil:BB:L3380] Exit 1@100.15: -5.00 at 16:13


Re: Z2 - Abnormal exit? [Re: DdlV] #431572
10/18/13 14:24
10/18/13 14:24
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Is there any insight into how a .01 move immediately after entry triggered an Exit; and how it triggered a Stop loss since it was a positive move? What am I not understanding?

I also noticed that acidburn's Z12 demo has a No Data...

Thanks.

Re: Z2 - Abnormal exit? [Re: DdlV] #431592
10/19/13 12:11
10/19/13 12:11
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
An exit immediately after entry is rare, but not abnormal. It can happen occasionally depending on the trade algorithm. You can see this if you run a test of Z12 and check the log.

"Stop loss" is a message by the TMF. A TMF is function in the script that moves an internal stop limit. Depending on its algorithm, it can sometimes move the stop very soon at break even, especially when the price has risen fast at entry time. If the price does not rise further, this can cause an immediate exit at almost the entry price. The "16:13" is probably the time of the exit bar and not the precise minute of the exit.

One can argue if such an exit makes sense or not - probably not - but with any algorithm you can find some example trades where the algorithm did not behave well. The same trade was also placed by our Z12 version and also got a "Stop loss", but a few bars later, and exited with a small profit.

Re: Z2 - Abnormal exit? [Re: jcl] #431593
10/19/13 12:45
10/19/13 12:45
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks jcl.

Wanted to be sure there wasn't an unintended bug in the script, since I can't see it. laugh

Understand the limits of any given algorithm's attempt to match perfection; and also that every algorithm is by definition perfect in the sense that it does exactly what the coder told it to do! No matter how strange that makes some things look.

Thanks.


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