Gamestudio Links
Zorro Links
Newest Posts
Zorro S for Oanda US
by SteveG. 06/06/20 15:24
The Black Book
by SteveG. 06/06/20 14:01
Indicator coding
by danatrader. 06/06/20 11:53
New AUM
by Aku_Aku. 06/06/20 10:10
Reading a TXT file on server
by Truth. 06/05/20 18:22
Oanda instruments
by Morris. 06/05/20 10:24
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
7 registered members (kalmar, Grat, SteveG, AndrewAMD, Mio, 3run, Iglarion), 475 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Frank_Shieh, PBSeven, Hardi01, Giuseppe, AdamWu
18461 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Alice1a look back #479430
03/28/20 19:46
03/28/20 19:46
Joined: Mar 2020
Posts: 16
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 16
London
Hi,

I am looking at the script for Alice1a. When you run a back test the output says Lookback set to 141 bars.

Is this some default setting as in the script there is no lookback mentioned as far as I can see. Are other strategies the same. I am aware you can set the look back period with the LookBack variable. If the look back period is automatically calculated which I assume it is how for example in this script does it calculate 141 bars as the look back?

Looking at this script my guess would have been 100 as the ATR requires the last 100 bars to calculate the stop loss.

Cheers

Re: Alice1a look back [Re: hola123] #479437
03/29/20 10:14
03/29/20 10:14
Joined: Apr 2008
Posts: 305
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 305
Austria
Yes it calculates the lookback from the used indicators. ATR will need more than 100. Its a cumulative indicator and needs a swing-in period.

Re: Alice1a look back [Re: Petra] #479438
03/29/20 11:22
03/29/20 11:22
Joined: Mar 2020
Posts: 16
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 16
London
Thanks for replying. Are you able to explain how the code gets the lookback period as 141 bars? Thanks

Re: Alice1a look back [Re: hola123] #479440
03/29/20 16:01
03/29/20 16:01
Joined: Feb 2017
Posts: 983
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 983
Chicago
The default value of UnstablePeriod is 40.
https://zorro-project.com/manual/en/lookback.htm

Re: Alice1a look back [Re: AndrewAMD] #479458
03/31/20 06:20
03/31/20 06:20
Joined: Mar 2020
Posts: 16
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 16
London
Thanks Andrew I would never have found that


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