Documentation

Last updated on 20. 11. 2026 by clonex / Ivan Hudec

Custom blocks, random groups and templates

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

The custom block request and Q's answer, with a note about an existing block with the same logic

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 Custom blocks (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.

CloseAboveYesterdayHigh in AlgoWizard's Custom blocks: Close[Chart, 1] > HighD[Chart, 1]

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.

Q asks whether to make separate groups, then saves six groups with their block counts

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 Random groups on the start screen (with a strategy open, at the bottom left).

The six new groups in AlgoWizard's Random groups, with the 20 blocks of CustomFilters

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's answer: the template it saved, what the entry slot draws from, and what to set in the Builder

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 entry slot of the template: a RandomCondition whose Random group is CustomLongConditions

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.

Troubleshooting

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

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.

Was this article helpful? The article was useful The article was not useful

0 Comments
Oldest
Newest Most Voted