liveBook · Manning

Investment strategy

As explained in Investing for Programmers

An investment strategy is a systematic approach for selecting, allocating, and managing investments to pursue specified financial objectives.

An investment strategy is a repeatable plan for selecting, allocating, and managing assets around financial goals. It balances potential return against risk, available capital, and the time required to research and monitor investments. No strategy suits everyone: personal circumstances, ethical boundaries, expenses, and desired independence shape the design. section 1.1 section 1.2 section 1.5.3

Define the strategy before choosing assets:

  • Estimate the surplus money available after essential expenses and decide how much capital can remain invested. section 1.1
  • Set the financial objective, time horizon, and acceptable loss; distinguish desired returns from outcomes that are merely possible. section 1.2 section 1.2.10
  • Choose understandable assets and an appropriate management workload, comparing stocks, bonds, ETFs, and income-producing holdings. section 1.2.10 section 1.6
  • Research candidates, plan the allocation, execute it, reflect on results, and adjust rather than relying on tips, excitement, or luck. section 4.0 section 1.1

Strategies differ in risk, expected income, growth potential, and effort. Growth portfolios may compound over long periods, while income-oriented holdings can better match spending needs as retirement approaches. Yet projected returns do not pay expenses until realized: inflation, market declines, and forced selling can undermine an otherwise sensible plan. section 5.4 section 1.6

A programmer’s strategy specification

Treat the strategy like project requirements: document the monthly surplus, target outcome, maximum tolerable loss, monitoring time, and ethical constraints. Then record why each asset belongs in the portfolio and what evidence would justify changing it. A passive-income target can be estimated by dividing annual expenses by an expected return rate, but inflation and a safety margin must be considered; the estimate is not a guarantee. section 1.5.3 section 5.4

Table 8.1 Results of prompts related to stocks
Investor
GPT-4o
Gemini
Finance Chat
Buffett
Microsoft, Costco, Visa
Costco, Microsoft, Procter & Gamble
Allegion, Danaher, Coca-Cola
Lynch
Etsy, Zoom, Square
Trade Desk, Etsy, Shopify
Tesla, Allegion, DCP

Compare how GPT-4o, Gemini, and Finance Chat translate value and growth investment styles into example stock suggestions, while treating model outputs as nondeterministic and nonconclusive. section 8.2.1

How Investing for Programmers covers it

How deep it goes
Defines parameters and a research cycle, then stops short of recommending specific assets or giving financial advice.
Examples
Uses stocks, bonds, ETFs, dividends, coupons, retirement calculations, and LLM-generated comparisons of Buffett and Lynch approaches.
What it assumes
Assumes only basic financial goals and surplus estimation, while introducing assets, risk-return trade-offs, and data-driven research.
What you can do after
Evaluate investment choices by matching assets and management effort to goals, risk capacity, time horizon, and evidence.
How it connects
Connects risk tolerance, financial goals, asset types, passive income, diversification, growth investing, and value investing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Investing for Programmers. The section links point to the parts of the book it draws on.