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.