Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, TipmyPip), 1,144 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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