Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TakeProfit difference between 1.20 and 1.22 #439976
04/14/14 09:04
04/14/14 09:04
Joined: Oct 2013
Posts: 18
5
512mb Offline OP
Newbie
512mb  Offline OP
Newbie
5

Joined: Oct 2013
Posts: 18
I took workshop 4_1 script and tested on 1.20 and 1.22.
Same script, same data, results are identical.
Now add just one line:

TakeProfit=4*ATR(100);

This changes everything: 1.20 is in big profit, 1.22 is in big loss?

Re: TakeProfit difference between 1.20 and 1.22 [Re: 512mb] #439979
04/14/14 10:56
04/14/14 10:56
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
I don't think that it matters much for your results if you're using Zorro 1.20 or 1.22. But the same script can produce very different performance when something else is different, such as the test periods, or account parameters.

When you don't know why system A produces a different result than system B, just compare the trades in the log - that's the easiest way to find the reason.

Re: TakeProfit difference between 1.20 and 1.22 [Re: jcl] #439982
04/14/14 12:28
04/14/14 12:28
Joined: Oct 2013
Posts: 18
5
512mb Offline OP
Newbie
512mb  Offline OP
Newbie
5

Joined: Oct 2013
Posts: 18
Well,
entry times and prices are the same in both cases,
exit times are the same,
exit prices are different.
looks like 1.2 is exiting at the close of the bar and 1.22 is exiting at the open of the bar.

1.2:

Short EUR/USD 2564112 1 25.03.13 13:00 25.03.13 17:00 1.29394 1.28396 7.5441 0 Target
Long EUR/USD 2583413 1 04.04.13 17:00 04.04.13 17:00 1.28779 1.2943 4.9497 0 Target

1.22:

Short EUR/USD 2564112 1 25.03.13 13:00 25.03.13 17:00 1.29394 1.28519 6.6086 0 Target
Long EUR/USD 2583413 1 04.04.13 17:00 04.04.13 17:00 1.28779 1.28755 -0.18238 0 Target

Re: TakeProfit difference between 1.20 and 1.22 [Re: 512mb] #439983
04/14/14 13:18
04/14/14 13:18
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Yes, it's the exit price. The trade is not exited at the open or close. Hitting a stop or profit target normally happens inside the bar. If both are triggered in the same bar, the exit price can't be determined, but must be estimated. I suspect that this the reason of the difference here.

AFAIK Zorro 1.22 uses a more pessimistic algorithm for estimating intrabar exit prices, with a larger weight on the begin of the bar - that seems to cause the differences in this case. When the performance depends heavily on profit targets or stops, set the TICKS flag. It gives more precise estimates for intrabar simulation.

Re: TakeProfit difference between 1.20 and 1.22 [Re: jcl] #439985
04/14/14 14:10
04/14/14 14:10
Joined: Oct 2013
Posts: 18
5
512mb Offline OP
Newbie
512mb  Offline OP
Newbie
5

Joined: Oct 2013
Posts: 18
ok,
so with TICKS set:
1.20 result is about the same AR 59%.
1.22 much better AR 15% (was -24%).

Re: TakeProfit difference between 1.20 and 1.22 [Re: 512mb] #440032
04/16/14 08:26
04/16/14 08:26
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
The 15% is the most realistic of the three results here, i.e. the return of the highest likeliness in real trading. Even with TICKS set, when stop and target are hit in the same 1-minute bar, the inaccuracy is equal to the high-low difference of that bar.


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