YAML Section Reference
Use this page when the question is about the authored contract itself.
Written By AxiomCharts
Last updated About 2 hours ago
YAML Section Reference
Use this page when the question is about the authored contract itself.
This is the page for questions like:
- which builder box should this rule live in?
- which fields are required for this package type?
- what happens if I leave this field out?
- which defaults are safe to rely on, and which are better made explicit?
- why is the strategy warning me even though the structure looked close?
This page is not trying to teach the whole strategy in one pass. Its job is narrower and more practical: help you author the sections correctly, understand what each field changes, and catch the mistakes that create quiet but misleading behavior.
If you want full example workflows, use Worked YAML Examples alongside this page. If your real question is about the expression language itself, use Expression Language Reference. If your real question is about available values, use Default Token Reference.
The Most Important Idea First
The strategy does not expect one giant YAML document.
It expects separate list snippets inside separate settings boxes.
That matters because many first-time authoring mistakes come from bringing a top-level document mindset into a settings panel that is already divided by side and by job.
The builder works more cleanly when you think of each box as:
- one list
- of one package family
- on one direction
The Eight Authoring Boxes
The strategy separates authoring into eight text areas.
How To Read A Package From Top To Bottom
When a package looks dense, read it in this order:
- the name tells you what this package is
- the ownership tells you what it belongs to
- the gate tells you whether it is even eligible
- the trigger or active condition tells you when it actually comes alive
- the behavior fields tell you how it will operate once live
- the scope and allocation fields tell you what share of the workflow it controls
That reading pattern helps because it mirrors the way the builder actually behaves. It also makes review much easier later when you return to an older configuration.
Structural Rules You Want To Get Right Early
Before any individual field matters, the package has to be shaped correctly.
Two habits make YAML authoring much less fragile:
- keep names exact
- keep package intent obvious from the first few fields
What The Builder Validates Versus What You Still Need To Verify
This distinction matters.
Validation can confirm things like:
- whether required fields are present
- whether a field uses an accepted value family
- whether ownership names point at something real
- whether allocation and coverage budgets add up correctly
- whether a required price field exists for the order type you chose
Validation does not confirm:
- whether the trade idea is strong
- whether the chart context is truly what you meant
- whether a token is carrying a useful signal
- whether the final management path matches your intention on a live chart
In other words, validation protects the contract. It does not replace observation.
Setup Packages
Setups define context.
This is where you decide whether a market condition is valid enough to create an operating window for the trade idea. A well-authored setup often makes the rest of the workflow dramatically easier to reason about because later rules can depend on a named context instead of repeating the same logic everywhere.
What a setup is responsible for
A setup can answer questions like:
- when does this idea become active?
- when should it stop being active?
- does it need confirmation before it counts?
- does cancellation also need confirmation?
- should there be a cooldown before it can become valid again?
- how many entries should be allowed inside one activation?
Setup field reference
How to author setups well
Strong setups are usually:
- easy to explain in plain English
- strict enough to create real context
- simple enough that you can verify them visually
Weak setups usually fail in one of two directions:
- they are so loose that later entries are doing all the real filtering
- they are so specific that they become invisible except on a tiny slice of history
Common setup mistakes
What to verify after authoring a setup
Before you move on to entries, verify:
- when the setup becomes active
- when it becomes confirmed
- when it cancels or resets
- whether any cooldown changes your expectations afterward
If those four things are not clear on the chart, it is too early to widen the workflow.
Entry Packages
Entries define participation.
This is where the workflow answers the question, "If the idea is valid, should the strategy get involved now, and in what form?"
The important word there is form.
An entry is not just a trigger. It also carries order behavior, ownership, allocation, price behavior, expiry, cancellation, and participation limits.
What an entry is responsible for
An entry can answer questions like:
- which setup does this belong to?
- what must be true before this entry is even eligible?
- what makes the entry actually attempt participation?
- what kind of order should it use?
- how much of the entry budget does it control?
- should its price freeze once armed or keep updating?
- should it expire if it waits too long?
- should it be allowed once or several times?
Entry field reference
Order-type thinking for entries
Different order types are not cosmetic variations.
Common entry mistakes
What to verify after authoring an entry
Before you add more entries, verify:
- whether the owning setup is actually the one you intended
- whether the gate and trigger are doing different jobs or the same job twice
- whether the order type behaves as market, resting, or hybrid intent
- whether the entry stays active, expires, or cancels for reasons you can explain
Take-Profit Packages
Take profits define how the workflow harvests success.
That may sound straightforward, but it becomes one of the most important design surfaces in the whole builder once you begin using multiple legs, entry targeting, or moving price logic.
What a take-profit package is responsible for
A take-profit package can answer questions like:
- should this management path apply broadly or to a specific entry group?
- when is the profit-taking path even allowed to exist?
- does it need a separate trigger before becoming active?
- should it act as a market exit, a resting order, or a hybrid order path?
- what share of the profit-taking budget does it control?
- should the price freeze once armed or keep updating?
Take-profit field reference
Designing take profits well
The cleanest take-profit designs usually make one thing obvious: what this leg is trying to do differently from the other legs.
Good differences might include:
- early versus late harvesting
- broad setup-owned behavior versus specific entry targeting
- fixed target behavior versus dynamic target behavior
Weak differences usually look like accidental duplication. If two legs seem to be doing almost the same job, the chart often gets harder to read without the workflow getting any stronger.
Common take-profit mistakes
What to verify after authoring a take-profit path
Verify:
- whether the leg is broad or entry-specific
- whether the order type matches your mental model
- whether the coverage share makes sense in the full ladder
- whether the price should stay fixed or update over time
Stop-Loss Packages
Stop losses define how the workflow constrains damage once participation exists.
They deserve just as much deliberate thought as take profits. In many workflows, the stop side is actually where trust is won or lost because it reveals whether the method has clear protection logic or only vague good intentions.
What a stop-loss package is responsible for
A stop-loss package can answer questions like:
- when should protection become active?
- should it be broad or tied to a specific entry group?
- does protection need a separate trigger?
- should protection live as market behavior, resting behavior, or a hybrid path?
- what share of the stop-loss budget does this leg control?
- should its working price stay fixed or keep adapting?
Stop-loss field reference
Designing stop losses well
A strong stop side usually makes three things clear:
- when protection becomes relevant
- how the protective path is expected to behave
- what share of the position each protective leg is actually responsible for
If any of those three is fuzzy, the chart will usually feel less trustworthy than it needs to.
Common stop-loss mistakes
What to verify after authoring a stop-loss path
Verify:
- whether the stop path is broad or entry-specific
- whether the order type matches your risk intention
- whether any confirmation makes the stop less immediate than you expected
- whether the stop price should remain fixed or keep adapting
Validation Rules That Save The Most Time
Several validation rules are especially important because they catch high-impact structural mistakes early.
When the strategy complains, start by asking which of those six themes the complaint belongs to. That usually gets you to the root faster than rereading the whole section.
Defaults Worth Using Carefully
Some defaults are helpful. Some should become explicit once your workflow grows.
Defaults that are usually reasonable for a first proof
- setup gate as broadly available
- entry trigger as broadly available when the gate already carries the logic
- one-leg exit allocations at full coverage
Defaults you should stop leaning on once the workflow becomes serious
- blank ownership when you really mean named ownership
- omitted allocation in a multi-leg ladder
- implicit scope when you really care which entry group a leg belongs to
- vague or forgotten price-lock behavior on non-market orders
The general rule is simple: defaults are safest in small, readable examples. The more serious the workflow becomes, the more often explicit authorship is the clearer path.
The Fastest Way To Review A Package That Feels Wrong
When a package looks close but behaves badly, check it in this order:
- is it in the right section?
- is the name exact?
- is the ownership what you intended?
- is the gate doing one job and the trigger doing another?
- does the order type match the required price fields?
- does the scope and allocation make sense?
That order catches a surprising amount before you ever need deeper debugging.
Where To Go Next
- read Worked YAML Examples when you want to see these fields used in full, readable strategy patterns
- read Expression Language Reference when the structure is correct but the logic text still is not
- read Default Token Reference when the field placement is fine but the vocabulary is still fuzzy
- read Troubleshooting when you already have a concrete symptom and want the shortest likely cause