Przejdź do treści
Biblioteka skilli
Finanse i księgowość · Testowanie

strategy-backtest

/strategy-backtest

Porównuje strategie na spółce z IDX, testuje zwycięską metodą walk-forward i przekazuje wynik do TradingView jako skrypt Pine.

Repozytorium
stockbit-mcp ↗
Licencja
MIT
Ostatnia zmiana repozytorium
28.09.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Porównuje strategie na spółce z IDX, testuje zwycięską metodą walk-forward i przekazuje wynik do TradingView jako skrypt Pine.

Oryginalny opis (EN)

Compare strategies on an IDX symbol, backtest the survivor walk-forward, and hand the result to TradingView as Pine Script. Use when the user asks whether a strategy works, to test an idea, or for a Pine script.

Jak działa

  1. The sequence
  2. What to report, and what not to
  3. Presenting it
Sekcje z nagłówków SKILL.md, w oryginale · 40 linii, 355 słów
Podgląd SKILL.md
---
name: strategy-backtest
description: Compare strategies on an IDX symbol, backtest the survivor walk-forward, and hand the result to TradingView as Pine Script. Use when the user asks whether a strategy works, to test an idea, or for a Pine script.
---

# Strategy backtest

## The sequence

1. **`strategy_compare symbol=…`** — nine built-in strategies over the same bars, ranked. This is
   the cheap first pass: it tells you whether anything on this symbol has an edge worth testing
   properly, and the bars are fetched once for all of them.
2. **`backtest symbol=… strategy=…`** on the one or two that stood out. Set **`walk_forward=true`**
   and give it `folds`. An in-sample result on two years of daily bars is a description of the past,
   and presenting one as a strategy is the single most misleading thing this server can be used to
   do.
   - Set `commission_buy_pct` and `commission_sell_pct` to the user's real fees. IDX defaults are
     roughly 0.15% buy and 0.25% sell, and the difference between gross and net is where most paper
     edges live.
   - `stop_loss_pct`, `take_profit_pct` and `max_hold_bars` change the answer more than the entry
     rule usually does.
3. **`pine_script symbol=… kind=strategy`** to hand it to TradingView, with the entry and exit
   conditions carried across.

`workflow_run name=strategy_check` and `name=pine_handoff` package steps 1–2 and 3.

## What to report, and what not to

- **`warnings` and `inconclusive` are the result**, not a footnote. Read them out. If the backtest
  says the sample was too small, that is the answer to the user's question.
- **ARA/ARB-locked bars break fills.** A limit-up day has no liquidity at the printed price. The
  backtester flags these; a strategy whose returns come from limit-locked entries did not happen.
- **Two years of daily bars is about 480 sessions.** That supports claims about daily setups. It
  does not support a claim about monthly seasonality, and it does not survive being sliced by
  regime.
- **Trade count matters more than return.** Nine trades with a 60% win rate is not a 60% win rate.
- **Never annualise a backtest** or extrapolate it forward.

## Presenting it

Give the net return after commission, the trade count, the maximum drawdown, and the walk-forward
folds side by side — if fold three lost money, that belongs in the first paragraph. Then the
warnings. Then, plainly: backtested results do not predict future returns, and this is not advice.

Wersje

W bazie nie ma innych skilli o nazwie strategy-backtest.

Migawka bazy z 13.11.2026 · wersja paczki 602db6f63fb3 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100pine-developer
    Pisze produkcyjny kod Pine Script v6 zgodnie z wytycznymi TradingView: wskaźniki, strategie i inne funkcje.
  • 100translate
    Przerabia dokument strategii na kod backtestu bez wglądu w przyszłość w Pythonie i Pine Script v6.
  • 100pinescript
    Wspiera pracę z Pine Script v6: składnia, wydajność, diagnoza błędów, backtesting i wizualizacja, przy pisaniu i debugowaniu plików .pine na TradingView.
  • 100pinescript
    Opisuje wzorce Pine Script v6: zasady składni, wydajność, debugowanie, backtesting i wizualizację, przy pisaniu wskaźników i strategii dla TradingView.
  • 100pinescript-v6
    Pisze i debuguje skrypty TradingView w Pine Script v6: model wykonania, system typów, konstruktory rysowania i anty-repainting z request.security, a każdy skrypt waliduje przed uznaniem go za działający.
  • 95openscript
    Pisze wskaźniki i strategie OpenScript dla OpenAlgo, przenosi skrypty z TradingView i instaluje tylko skompilowane pliki.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.