Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
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: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
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: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
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: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
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: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
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