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.
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.
Rename
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.
See F1 > Help > Indicators > Stability of Indicators
My guess is that the trade would disappear if you just added 1 or 2 more weeks.
>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
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
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.
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.
Your Response
Post
Edit Post
Login is required