ww58
- ago
I have a strategy based on candlestick patterns. It has very strange behavior:
first picture - backtest for the last 2 months

second picture - for the last 2 weeks

As you can see, the trade of 25.04 is absent on the first one.

At the same time, yesterday there was a strategy entry via strategy monitor. It is not on any backtest at all.
0
96
Solved
3 Replies

Reply

Bookmark

Sort
Cone8
 ( 4.34% )
- ago
#1
It's likely an edge case. Chart pattern conditions are dependent on ATR (ATRPercent), which is an IIR-type indicator that needs a lot of seed bars to stabilize. If using the 10-period default setting (Preferences > Chart Patterns), you need at least 30 or 40 bars before you get a stable value.

See F1 > Help > Indicators > Stability of Indicators

My guess is that the trade would disappear if you just added 1 or 2 more weeks.
0
ww58
- ago
#2
>My guess is that the trade would disappear if you just added 1 or 2 more weeks.
Right

What about the fact that there was a trade in strategy monitor, but at no point do I see it on the backtest? SM uses also 2 weeks as on the second picture
0
Cone8
 ( 4.34% )
- ago
#3
Already explained. You may (or may not) see the trade with only a little seed data - it's unstable. Next Monday it may change again because the ATR values are not stabilized. Load 4 weeks for these strategies in the S. Monitor.

Another note is that your strategy doesn't actually use any indicators, so there isn't really even a "StartIndex" period. To fix that, add another condition that uses a SMA with a period of 13 bars x 10 days (2 weeks) = 130 or more. For example, SMA(Close, 150) > 5000000 will probably never be true. That will add a StartIndex = 150 so that your strategy will ignore the first 150 bars of data. Make sure to load sufficient data, like 4 weeks.
1
Best Answer

Reply

Bookmark

Sort