Test an idea Backtest a stock trading rule without code
Pick a US stock and an idea, and see how it did against holding, after costs. Free, no account.
Historical simulation, free, no account needed.
A free stock backtesting tool, with the assumptions in view
A backtest is a test of a fixed rule on past prices: what would have happened if you had followed it. Here you can run one on a US stock or ETF, with no code and no account. The rule is then set against just holding the same stock over the same years. A past result is a lead to check, not a forecast.
How the daily test works
- Choose a symbol and one of the starting rules. Each rule sets its own exit. To change the exit, cap the holding time or pick the years, open the rule in Advanced. Some stocks have less than 10 years of history.
- The test reads each day’s closing price and buys at the next day’s open. It starts with $100,000 and only buys; it never sells short.
- Read the cost notes under the result. The rule pays a commission and a price slip on each trade (slippage), in and out. Simply holding pays no trading costs.
- Compare the return, the biggest drop and the number of trades. Check whether the answer rests on one period, a few trades or a kind guess about costs.
What this test can and cannot tell you
Daily prices do not show what happened inside the day, and they are not real orders. Modeled costs cannot promise a fill, enough buyers and sellers, or the real price slip. Short sales, options and opening-range rules are outside this daily test.
Read the dividend notes on each result. Both sides include dividends when we have them; if not, both use price alone. Testing only stocks listed today can also leave out the ones that failed (survivorship bias).
Changing settings after you see a result reuses the same history. Our 6 tests of whether a rule holds up (checks) reuse it too: they do not keep back recent years you have not seen (a holdout sample). Learn how to avoid look-ahead bias and count trading costs before you trust a result.
Read a documented study
Each of these studies lists its own data, costs and limits. The daily tool above does not copy how they trade inside the day or overnight.
- QQQ opening-range breakout: historical result and cost-model correction
- SPY overnight: the first result and the later re-tests
- All published rule tests, including negative and inconclusive results
- The rules people tested most this week, by number of runs
שאלות נפוצות
צריך חשבון או קוד כדי להריץ בדיקה?
לא. הרצת הסימולציה ההיסטורית היומית חינמית ולא דורשת חשבון או קוד. שמירת מחקרים היא תכונה של חשבון. לתוכניות הנוכחיות
כמה שנות היסטוריה אפשר לבדוק?
אפשר לבדוק עד עשר שנות נרות יומיים ללא חשבון או במסלולי Free ו־Starter. במסלול Pro אפשר לבחור עד 20 שנה בהגדרת ההיסטוריה. לחלק מהסימולים יש היסטוריה קצרה יותר.
אילו עלויות מסחר נכללות?
כל עסקה של הכלל כוללת עמלה והחלקת מחיר מדומות בשני הצדדים, עם הערכה נמוכה יותר לניירות הנזילים ביותר (תעודות הסל של המדדים הגדולים, המניות הגדולות ביותר ותעודות סל ממונפות) וגבוהה יותר לכל השאר. ההשוואה להחזקה היא ללא עלויות מסחר.
דיבידנדים נכללים?
שני הצדדים כוללים דיבידנדים כשהם זמינים, ואחרת שניהם משתמשים בתשואת מחיר. כל תוצאה מציינת במה השתמשה.
אם הכלל ניצח החזקה פשוטה, זה מוכיח שהוא עובד?
לא. השוואה היסטורית אחת יכולה לשקף מזל, הטיית בחירה או הגדרות שנבחרו אחרי שראיתם את התוצאה. בדקו כמה ניסיונות עשיתם, בדקו תקופה אחרת ושמרו מדגם שלא נגעתם בו לפני שמסיקים מסקנות.
בדיקה היסטורית יכולה לומר כמה מניות לקנות?
הבדיקה חוקרת כלל תחת הנחות החשבון שלה, וסטופ מתוכנן יכול להתבצע במחיר גרוע מהמתוכנן. לתרחיש סיכון נפרד לחשבון שלכם, השתמשו במחשבון גודל פוזיציה. למחשבון גודל פוזיציה