Skip to content

Crafting Your First Spell

If you are new to Grimoire, this guide walks through a simple example: the 60/40 portfolio. By the end, you will have created and backtested your first spell.

Note: This guide is for informational purposes only. It is not financial advice or a recommendation to buy or sell any security. Always do your own research before making investment decisions.

  1. Start by naming your spell:
  2. The 60/40 portfolio targets 60% stocks for growth and 40% bonds for stability. To build it, add a Weighted incantation by clicking the + icon.
  3. For stocks, use VTI (Vanguard Total Stock Market ETF). For bonds, use VGIT (Vanguard Intermediate-Term Treasury ETF). Add these two Tickers under the Weighted incantation. Tip: Start typing the ticker symbol and the auto-complete menu will help you find it.
  4. Switch the weighting method from Equal to Custom.
  5. Enter 60% for VTI and 40% for VGIT. Make sure the total adds up to 100%.
  6. Set When To Trade to Yearly. This portfolio does not require frequent rebalancing.
  7. Click Save at the top.
  8. The Backtest Run button is now enabled. Click it.
  9. QuantMage will display a chart showing the spell’s performance over time. You can also compare it with the default benchmark ticker, SPY.
  10. Open the Stats tab to review the performance metrics: You may find that it has a lower annual return than SPY, but also a lower drawdown. That smoother return profile can lead to stronger Sharpe, Sortino, and MAR ratios.
  11. The Allocation History tab shows the daily allocations:
  12. That is your first QuantMage spell. You can compare it with the finished version here. You can also explore the tools in the top bar on your own.

If you prefer a hands-on walkthrough, try the interactive version of this tutorial. It covers the same flow directly inside Grimoire.


You now have a working baseline that you can modify and experiment with further.