🐍 Why one trading decision a month is enough


Most beginners think a strategy needs constant attention to make money (it doesn't)

You have a job, and the two hours you carve out on a Sunday keep going into data cleanup instead of testing an actual trading rule.

So months pass and you still haven't seen a single strategy run start to finish. Discipline isn't the problem.

The rule you picked is too big to finish, so pick a smaller one.

Here's the reality.

The idea Meb Faber published in 2007 holds a fund only while its price sits above its own 10-month average, checked once a month, and managed futures funds (firms that trade commodity and currency contracts for clients) still run versions of that same comparison across dozens of markets today.

Tested on five funds from 2010 through June 2023, it returned 57% in total, with a worst stretch where the account fell 28% below a previous high before recovering.

There's a structured way to learn this.

You start with one rule you can finish in an afternoon. From there you test it on historical prices with realistic costs, then connect it to your broker. You don't need more hours. You need a shorter path through them.

Here's a Python example you can use now.

Assumes prices is a pandas DataFrame (a table) of daily closing prices with one column per fund (SPY, EFA, IEF, VNQ, GSG).

The function gives you one row per month showing how much of your money sits in each fund.

If two of the five are above their average, each gets 50% and the rest stays in cash, which is where the smaller losses come from, because a fund you've already sold can't fall any further.

The shift(1) matters more than it looks.

Without it you'd be using the same month's closing price to decide what to hold during that month, which is a trade you couldn't have made in real life.

Run this on ten years of monthly closes and you'll have a full record of every decision the rule would have made, in about 15 lines.

This is the fast approximation, though. Zipline Reloaded runs the same rule day by day with commissions and the gap between the price you saw and the price you got, and that's the version worth trusting before you fund anything.

Your next steps

Start with one rule on five funds and monthly closing prices, and don't move on until you've produced a full record of every trade it would have made.

Then run the same rule with realistic trading costs and read the worst peak-to-trough loss, so you know the size of decline you'd have to sit through.

After that, you connect the strategy to Interactive Brokers, which is wiring code to an account rather than more strategy work.


Jason Strimpel, founder of PyQuant News

Say 👋 on X/Twitter, LinkedIn, or book a call with me. You can always reply to these emails. I check them all.

You got this email because you joined the PyQuant Newsletter or bought a product of mine.

You told me your email address is Reader.

Not right? Update your profile.

Want to stop getting these emails? No problem! Unsubscribe from all my emails.

Never investment advice. Use at your own risk. For educational purposes.

113 Cherry St #92768, Seattle, WA 98104

© 2026 PyQuant News, LLC

​

PyQuant Tips

For finance professionals, coders, and complete beginners. Automate your trading, investing, and data analysis with Python. No jargon, no fancy math, code you can use.

Read more from PyQuant Tips
Every strategy makes 1 of 3 bets: Use Python to tell you which one.

Sort any trading idea into 1 of 3 bets with 4 lines of Python Every strategy makes 1 of 3 bets: Use Python to tell you which one. My master's degree taught me MATLAB. Not Python. Since I didn't want to pay the $2,000 license fee, I watched every YouTube video I could find to teach myself. 96% of them were a complete waste of time. The other 4% buried me in strategy ideas. Statistical arbitrage. Trend and momentum. Pairs trading... Maybe that's you. A head full of trading ideas but nothing...

Use the workbook you already have.

Move from Excel to Python in 3 simple steps Use the workbook you already have. Most finance work still runs on Excel. When I was a derivatives trader, most the $7 billion operation was based on Excel. The process was the same: You build the model, drag the formulas down and refresh it every Monday. Eventually, the sheets got too big and wouldn't even open. The analysis was basic and not that interesting. An actuary in one of my courses said most of his analysis lived in Excel, and "it was...

You don't need a $30,000 terminal to build an AI research desk Let Python pick what matters. Let the agent explain it. A Bloomberg Terminal costs about $30,000 a year. So you do what everyone does: You paste news headlines into ChatGPT. Then a 10-K. Then a chart. Then another chat window. By Friday you have 40 chats, 12 browser tabs, and no idea if any of what ChatGPT came up with works. That's experimenting, which is fine, but the sooner you build a system, the sooner you get results. Every...