Documentación
Aplicaciones
Last updated on 20. 11. 2026 by clonex / Ivan Hudec
Custom blocks, random groups and templates
Contenido de la página
A custom block is a condition or a price level you define once in AlgoWizard and then reuse, for example “price closes above yesterday’s high”. A strategy template fixes the frame of a strategy and leaves slots for the Builder to fill. A random group is a pool of blocks for one of those slots: the Builder fills that slot only from the pool.
Q makes all three from a sentence, using the indicators and blocks in your installation, and saves them there.
Step 1: Create a custom block
Start a new chat and pick Custom Analysis Tabs & Code, or write your own sentence. Clicking one of the tile’s examples sends it at once:
Create a custom block: price closes above yesterday’s high
One step in 7 seconds. Q’s answer also named an existing block with the same logic, LongBeyondPrevDayExtreme, and advised against using both in one template.
You find the block in AlgoWizard. On its start screen click Bloques personalizados (with a strategy open, the button is at the bottom left) and pick the block’s category in Show. Ours was saved under PriceAction_user.
The block opens without errors: the close of the last finished bar is greater than the previous day’s high.
Step 2: Pool your blocks into a random group
When you want the Builder to use only certain blocks in one place of a strategy, put them in a random group:
Build a random group pooling my custom blocks for the Builder
Q may ask first. Ours explained that conditions and price levels can’t share one Builder slot and that long and short signals shouldn’t be mixed, and offered separate groups.
Our installation had about 200 custom blocks of different kinds. After our yes, Q saved six groups, for example CustomLongConditions with 56 blocks and CustomFilters with 20. It also said which blocks it left out and why.
The groups are in AlgoWizard too: click Grupos aleatorios on the start screen (with a strategy open, at the bottom left).
The six new groups under Custom: three of type Condition and three of type Value. CustomFilters holds 20 blocks.
Step 3: Use the group in a strategy template
A group does nothing on its own. It takes effect when a slot of a strategy template draws from it. Ask Q for a template that uses it:
Now create a strategy template for the Builder that uses this random group in one of its entry condition slots.
Q picked the long-conditions group for the long entry and said what to do next: in the Builder, set the strategy type to the template, then turn on the stop-loss types and ranges the Builder may choose from. In the Builder that is Full settings > What to build > Strategy from template. Q did not run a build.
Open the template in AlgoWizard (Files > Load from file, from user/settings/StrategyTemplates/) and click the entry condition to see the slot. If AlgoWizard asks about a missing symbol (Resolve custom resources), choose Use existing and pick one of your symbols.
The template’s entry condition is a RandomCondition, and its Random group is CustomLongConditions, the 56-block group from Step 2.
Check the template’s money management before you build: ours came with martingale money management we hadn’t asked for.
Solución de problemas
AlgoWizard asks about a missing symbol when you open the template. The template Q made in our test still named a data symbol that wasn’t in our installation. Choose Use existing, pick one of your symbols and continue loading.
Where to go from here
- Indicadores personalizados: when the block needs an indicator StrategyQuant doesn’t have
- Q ¿Qué es un sistema de gestión de la calidad?: what Q is and how a request is answered
- Blog: How I saved tens of hours: Q researched and built 201 custom blocks in minutes, a real build with custom blocks
What it costs. The three steps on this page took 56 credits together with GPT-6.1 Terra, Q’s question included. On average, a request that builds custom blocks, groups or templates takes about 60 credits with GPT-6.1 Terra (real usage, October–November 2026). Sonnet 5 and Opus 5.5 cost several times as much.
¿Le ha resultado útil este artículo? El artículo era útil El artículo no era útil

![CloseAboveYesterdayHigh in AlgoWizard's Custom blocks: Close[Chart, 1] > HighD[Chart, 1]](https://strategyquant.com/wp-content/uploads/2026/11/q-blocks-04-block-in-algowizard.png)



