Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 728 guests, and 2 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 3 of 3 1 2 3
Re: Additional testing to be undertaken... [Re: 1ND1G0] #471448
03/04/18 18:12
03/04/18 18:12
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
It's not that strange. Probably from slippage, or gaps if your market is not trading around the clock

Re: Additional testing to be undertaken... [Re: Dalla] #471449
03/04/18 19:51
03/04/18 19:51
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Quote:
The strategy is based on 60 minute bars, so I have been using M1 data rather than Tick. I have tried to only optimise relevant parameters.

set(TICKS) sometimes helps to get the stops closer in simulations.

Re: Additional testing to be undertaken... [Re: Sphin] #471450
03/04/18 21:00
03/04/18 21:00
Joined: Feb 2018
Posts: 25
1
1ND1G0 Offline OP
Newbie
1ND1G0  Offline OP
Newbie
1

Joined: Feb 2018
Posts: 25
Thanks, Dalla, Sphin - that helps clear that up.

Re: Additional testing to be undertaken... [Re: 1ND1G0] #471451
03/04/18 23:24
03/04/18 23:24
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Aha! I figured out what I did wrong, instead of exiting a trade via TMF, set Stop.

Here's the percentage approach:
Code:
// to place a stop 1% away from the current price
Stop = price() * 1.0 / 100.;
enterLong();

Below is a before-and-after of applying a 0.5% stop to the Luxor system.




We do have outliers, but 99% of the issue has been addressed.

Quote:
set(TICKS) sometimes helps to get the stops closer in simulations
I did attempt this, I don’t think it eliminated my outlier.

I'm happy my theory was well-received, though.

Attached Files before.pngafter.png
Page 3 of 3 1 2 3

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