QuantPower learning path
Learn to Code for Trading, from Zero
Start with a few lines of Python. Work towards reading market data, building indicators and testing rules you wrote yourself. No coding experience, broker login or live order is needed for the introductory work.
See the six coursesSix courses, in order (beta)
Use the sequence if you are new to coding. If you already work with data, use the expected output for each course to choose a starting point.
Course 1
Python Basics for Traders
Start with one file and run it locally. Work with numbers, strings, lists, functions and simple tests. Finish with a small program that validates sample close prices before it computes a result.
What you’ll build: A Python module and tests that handle good data, empty input and bad values.
Python tutorialCourse 2
Market Data and Candles
Read fictional OHLCV data into a consistent format. Check times, duplicate records, missing intervals and impossible prices. Treat a candle’s closing price as available only after that candle closes.
What you’ll build: A report of valid and invalid rows, with a reason for each rejected row.
Python CSV documentationCourse 3
Python Trading Indicators
Compute a moving average from close prices and verify it by hand on a short input. Make the warm-up explicit. Compare the output for a period change without treating either value as a recommendation.
What you’ll build: An indicator function, a short expected-output table and tests for the warm-up.
Python statistics documentationCourse 4
Broker API Python Course
Practise reading documented market-data responses with saved examples before connecting to a real service. Separate authentication, transport, parsing and data checks so that each can be tested without revealing credentials.
What you’ll build: A read-only adapter tested offline for success, unavailability and an unexpected response.
Course 5
Backtesting in Python
Build a small simulation from rules you can state in plain language. Test when each decision becomes possible, keep simulated execution separate, and document how costs and missing bars affect the comparison.
What you’ll build: A reproducible run summary and a time-ordered event log, with assumptions beside the results.
Course 6
Arth Script to Python
Take a rule you wrote in Arth Script and express it in Python. Compare the two outputs on the same data, interval and warm-up. Investigate the first candle where the outputs differ rather than hiding the difference with rounding.
What you’ll build: A parity table with timestamps, intermediate values and explanations for any differences.
How every lesson works
Read the lesson
Work through one idea before copying its implementation. Start with inputs, expected output and an example you can check on paper. If the output depends on an assumption, write down the assumption first. For example, decide whether a list with fewer than three prices should have no three-price average or whether you intend to calculate a shorter mean. These are different rules, and a program cannot tell you which one you meant.
Do the exercise
Change one input or rule on your own, then write one case that should pass and one that should fail. Run them before moving on. Save the result in a file or a short note, and record the Python version if the environment matters. If a case fails, reduce it to the smallest input that still produces the wrong result. This makes it easier to distinguish a misunderstanding of the rule from a mistake in the code.
Quanty checks the answer (beta)
For exercise review (beta), share the exercise, your expected output, the minimum code needed and the error you saw. Ask Quanty to point out the first mismatch or suggest an additional test. A review is not proof that the code is correct, a strategy is suitable or an algo is safe to run. Compare the explanation with your own tests. Do not share passwords, API keys, access tokens, account exports or identifiable financial information.
A practical way to use this learning path
Pick a starting point by what you can explain
If you have never run a Python file, start with the first course. The milestone is not memorising commands: it is being able to change an input, predict the output and find the first relevant line when a test fails. If you already write functions and tests, try the candle course first. Describe what one row represents, which timestamp places it in order, and how you would report a missing interval without making up a price.
If you already maintain a local dataset, try the indicators lesson. Start with a short, invented list that you can calculate by hand. Write down exactly when the first average should appear, then check that it appears at that same input position. An average with the right value on the wrong row is still a mismatch. If that exercise is familiar, choose the read-only API course or the simulator course depending on whether you want to practise importing data or checking the behaviour of your own rules.
Keep a small record of what changed
Keep the original exercise, your revised program and your expected result in one local folder. A text file is enough. Record the sample you used, the command you ran and the first line where the result differed from your expectation. Try changing only one thing at a time. If the failure disappears after changing the input and the code together, you will not know which change mattered. When your small example passes, add one failure case on purpose and check that the program explains it clearly.
When comparing implementations, capture the data and settings that both used. A screenshot might show that two lines look similar; it cannot by itself show that they align with the same candles, start on the same row or treat missing values alike. Save the earliest differing row as text. On a small fixture, you can often trace a disagreement more effectively than on a whole day of results.
Use Quanty to review an answer, not to attest to it
A useful review question is bounded: “These invented inputs should produce no result until the third row. My function returns a number on the second row. Which part of my test or function should I read first?” Include the intended behaviour and a few fictional rows. Leave out broker credentials, account details and any private records. Quanty’s exercise review (beta) is optional. It can suggest why a discrepancy might exist; you still check the output and decide whether the explanation fits the stated rule.
Decide what counts as finishing a course
Finish with a result someone else could reproduce from the same example. For Python basics, that can be a passing local test and a short explanation of its input. For candles, it can be a report that distinguishes invalid rows from missing intervals. For simulation, keep a small timed ledger that includes when the program observed data and when it acted inside the model. These are learning outputs, not assessments of a live account or evidence a rule will work in the market.
Before you start
Keep the first exercises offline and use fictional data. Use a separate folder for each course and write the expected result in plain English before you run the code. Where an exercise uses timestamps, note their time zone and whether each time labels the beginning or the end of an interval.
Start with code that reads data and produces a number or a list. Keep that separate from anything that can place orders. Even if a simulation produces the result you expected, it does not establish how the same rule would behave in the market.
QuantPower is software, not an adviser. These lessons teach coding and testing. They do not advise what to buy or sell, recommend a strategy, or promise results.
Browse the quantitative trading guidesTax and finance questions with Quanty (beta). Information only, not tax advice.