Every idea the Algo Brain tests runs over one stretch of past candles: its period. The period is cut three ways, and each cut guards against a different kind of luck. The pictures below play the cuts step by step. You set them on the Algo Brain page: Test from in Time frames and period, the parts in How a run tests, and the exam's size, the check part's size and what each part must show in The three periods.
1. One period, three cuts
| Cut | What it is | What it is for | The luck it catches |
|---|---|---|---|
| Final exam | The newest part of the period. Nothing sees it until a winner is picked. | One look, ever: the winner passes or fails, and a fail is final. | A variant picked because it looked best on all the data the brain had. |
| Check part | The last share of the time before the exam. No setting is chosen on it. | The variants are ranked by their results here. | A setting that only fits the candles it was tuned on. |
| Parts | The time before the exam cut in equal pieces. | The pass rule asks the variant to make money in most of them (3 of 5 as standard). | A profit made in one lucky stretch, such as one strong rally. |
Why both a check part and an exam? The check part is used again and again: hundreds of variants are ranked on it, and you pick from that ranking. Picking the best of so many on the same candles makes them a little "seen" too, so a lucky one can still come out on top. The exam is the part even that picking never touched.
2. The exam period
Size is either a share of the period or the last N candles.
- Share of the period % (1 to 25): each time frame gets that share of its own period, in whole days rounded down. 20 % of 2,159 days = the last 431 days. At most 25 %, because the search must keep at least 3 times as many days before the exam.
- The last N candles: the same number of candles on every time frame, rounded up to whole days. 300 candles are 300 days on 1d but only 5 hours on 1m (rounded up to the last day).
The exam needs enough trades to pass: at least 15 as standard (The three periods, under The final exam). A short exam on a slow idea may simply have too few.
3. Each time frame's period
Test from starts every time frame. 1m to 30m start later where needed: their candles begin on 1 January 2022, and a run loads at most 1.1 million candles a coin (10 million for all its coins together). So the more coins, the shorter a fast time frame's period. The exam is then its share of that shorter period.
Fewer coins give 1m and 5m more days: on the top 10, 1m has about 690 days instead of 69. The note under the exam box on the Algo Brain page shows the days and candles for the coin groups and time frames you tick.
4. The check part and the parts
Check part of the period (%), 30 as standard: the variants are ranked on the last 30 % of the time before the exam. Bigger gives a more honest ranking but leaves less to search on. Parts of the period, 5 as standard: the time before the exam in equal pieces, to see if the variant made money in most of them. More parts are stricter about "steady over time", but each part has fewer trades, so one weak stretch fails it more easily. It is a pick of 2 to 5: with 40 trades at least, 5 parts leave about 8 trades a part, and smaller parts make "made money in a part" mostly luck. Both apply to new runs.
Parts that made money, at least counts on the same parts of the same time: 3 with 5 parts means at least 3 of the 5 equal pieces ended in profit. The check part asks "does it work on time it did not learn from?", the parts ask "does it work steadily over time?"; a good variant passes both. Its pick goes from 1 up to the parts of the period picked; picking fewer parts brings it down with them.
What each part must show
On the Algo Brain page, The three periods lists under each part what a variant must show there (the standard values; change any of them there):
| Part | What it must show | Stops the variant? |
|---|---|---|
| The search (learning part + check part) | The Lab's pass rule, the same on every time frame: at least 50 trades, profit factor 1.3 or more, average trade above 0.2 %, worst bad run at most 30 %, 3 of the 5 parts making money, still making money without its best 5 trades. | Yes, unless Stop the variants that fail is unticked on the Algo Brain page, or Final exams are on only my picks (then a variant that fails gets a lower score and you choose what is examined) |
| The check part | Profit factor 1.1 or more on at least 15 trades. Also shown: the luck bar and the good area. | The profit factor yes (it is part of the pass rule); the luck bar and the good area no, they are shown only. On the Algo Brain page the luck bar's level is 90 % as standard (a rule with no edge beats it about 1 time in 10; 95 % = 1 in 20, stricter) and its × is 0.9 (the bar a tenth lower; 1 = the bar itself) |
| The final exam | At least 15 trades, and at least half the trades its own pace in the search asks for over the exam's days; profit factor 1.1 or more, average trade above 0.2 %. | No: a fail is a red warning only. The variant still goes on to the one-account test and, when that passes, is saved as a strategy marked "failed its final exam". Such a strategy is never put on paper by the brain: its 5 paper places go only to strategies that passed. A variant is never examined twice |
Average trade is what one trade makes on average, as a % of the money put into that trade, after the fee, the spread and the slippage. Example: 100 trades of 1,000 USDT that made 2,500 USDT in all = 25 USDT a trade = 2.5 %. Above 0.2 % leaves room for costs a little higher live than in the test; 0 asks only that it does not lose.
Trades at its search pace: the search's trades spread over the exam's days say how many it should make there. Example: 120 trades in 1,700 days of search and a 432-day exam = about 30 expected; at the standard 50 % it needs 16, so 15 trades shows red: enough for the lowest number, not for its own pace. It catches a variant that stopped trading. Set it under The final exam on the Algo Brain page (0 = off).
Example: a 1h variant with 80 trades and profit factor 1.5 over the search, 1.2 on the check part, then 12 trades in the exam fails the exam in red: too few trades to judge, however good they were. It is still tested as one account, and you decide whether to use it.