Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
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
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 923 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: 5 bar reversal strategy [Re: Sundance] #429858
09/19/13 11:31
09/19/13 11:31
Joined: Nov 2012
Posts: 126
B
blaub4r Offline
Member
blaub4r  Offline
Member
B

Joined: Nov 2012
Posts: 126
It's not like I said this a month before ...
But it's good to have a confirmation laugh

Re: 5 bar reversal strategy [Re: blaub4r] #429860
09/19/13 11:46
09/19/13 11:46
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
I just did the programming to learn some things :-)

Re: 5 bar reversal strategy [Re: Sundance] #429992
09/21/13 20:40
09/21/13 20:40
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
hi. Just one question. I tried to optimize the TrailSlope parameter with the follwoing line:

TrailSlope = optimize(15, 10, 100, 10);

When doing this i get the following error:
BADFREE2: PL

BADFREE2: PLB


After that Zorro doesn't function and must be closed.


Any thoughts?

Re: 5 bar reversal strategy [Re: Sundance] #429997
09/21/13 22:16
09/21/13 22:16
Joined: Jul 2013
Posts: 522
D
dusktrader Offline
User
dusktrader  Offline
User
D

Joined: Jul 2013
Posts: 522
I believe that error means you probably need a bigger Lookback value. If you're not setting Lookback, Zorro cannot always set it automatically during an optimize. Usually when I'm not sure I set it to 500. It needs to cover the max required for your highest optimize range (for example if you are optimizing SMA() and the highest value was 100, then I believe you'd need a minimum 100 Lookback value)

Re: 5 bar reversal strategy [Re: dusktrader] #430011
09/22/13 10:21
09/22/13 10:21
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A too small lookback value would normally give a different error message. But without seeing what you did in your code to get that error, it's only speculation. The first thing to do when you get error messages is looking for mistakes in your code. Optimizing the trail slope alone is obviously not a mistake, so you have to look again.

Re: 5 bar reversal strategy [Re: jcl] #430019
09/22/13 14:31
09/22/13 14:31
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Okay. I haven't mentioned that without the optimization there is also no error :-)

Re: 5 bar reversal strategy [Re: Sundance] #430020
09/22/13 14:35
09/22/13 14:35
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Back again. Dusktrader you were right. The LookBack value was 80. I set it to 200 and now there is no error :-)

Thanks mate.

Page 2 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