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
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 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
Not clear about LifeTime for machine learning training #481618
10/08/20 09:44
10/08/20 09:44
Joined: Sep 2020
Posts: 22
Z
zzy Offline OP
Newbie
zzy  Offline OP
Newbie
Z

Joined: Sep 2020
Posts: 22
Dear Developers,

On this page: https://manual.zorro-project.com/tutorial_pre.htm, I read the following:

"LifeTime sets the duration of a trade to 3 bars, assuming that a 3 bars candle is good for a 3 bars prediction. If a trade is not closed by an opposite pattern, it is closed after a week. The trade results after one week are also used for training the candle patterns and generating the trade rules. MaxLong/Short limit the number of open trades in test or trade mode to 1."

My question is, why "If a trade is not closed by an opposite pattern, it is closed after a week."? Where does the "a week" come from?

Re: Not clear about LifeTime for machine learning training [Re: zzy] #481625
10/09/20 20:22
10/09/20 20:22
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
BarPeriod = 1440; // 1 day <---------- Defines the size of the candles.
BarMode = BR_LEISURE; // allows weekend bars, but don't trade on them <------------------ From manual: The week then consists of 6 instead of 5 bars.
LifeTime = 3; // = prediction horizon <-------------------- Defines normally the duration of a trade, if no opposite signal appears.



So the strategy sample needs three bars for a pattern, with BR_LEISURE set, the week is 6 bars long, Lifetime is 3, meaning PATTERN + LifeTime = BR_LEISURE WEEK... 3+3 = 6.

So, if pattern occurs, three days of the week are already over, with LifeTime 3, the trade is entered for a max. duartion of 3 days, and after 6 days the week is over.


The sentence is a bit unclear, maybe it would better be:

If a trade is not closed by an opposite pattern, it is closed 3 bars after entering, counting weekends as one bar.

Last edited by danatrader; 10/09/20 20:26.
Re: Not clear about LifeTime for machine learning training [Re: danatrader] #481631
10/11/20 08:49
10/11/20 08:49
Joined: Sep 2020
Posts: 22
Z
zzy Offline OP
Newbie
zzy  Offline OP
Newbie
Z

Joined: Sep 2020
Posts: 22
Thanks danatrader for the answer, which I think is reasonable.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1