Configure a Cycle
A cycle lets a strategy repeat the same sequence automatically. Instead of deploying a new strategy after each trade, you draw a cycle connection from a downstream node back to an upstream Indicator. When the loop completes, the strategy returns to that Indicator and runs again.
When to use a cycle
Use a cycle when you want the same entry logic to fire more than once without redeploying. Common cases include DCA strategies that re-enter up to a set number of times, scalping loops that enter, exit, and wait for the next signal, and any strategy where the same Indicator should trigger repeatedly over the life of the deployment.
Draw a cycle connection
A cycle connection links an Order node back to an upstream Indicator. After the Order’s position closes (via Take Profit, Stop Loss, or closing Trigger), the strategy loops back and waits for the Indicator to fire again.
To draw the connection:
- Hover over the Order node until its handles appear.
- Grab the dashed cycle handle and drag it back to the upstream Indicator you want to loop to.
- Release on the Indicator. The connection renders as a dashed line with a
↻panel showing the cycle summary. - The cycle config panel opens automatically on creation.
The cycle panel shows a live summary of the config, for example: 5× · 10s · Reset. Click the panel at any time to reopen the config panel.
Only one cycle connection per source node, and only one per target node. If you need multiple loops in one strategy, use separate Indicator and Order pairs.
Configure the cycle
The config panel has up to six options. Some are always visible, others appear only when relevant.
Cycles
How many times the loop runs before the strategy stops cycling. The default is 10. The maximum is 1,000.
Set this to the total number of re-entries you want. A DCA strategy buying five times uses 5 here.
Time Delay
When enabled, the strategy pauses this long after each loop completes before returning to the Indicator. The default is 10 seconds. Use the unit toggle to switch between seconds, minutes, and hours.
Disable it to return to the Indicator immediately after each loop completes.
Reset Indicator
Prevents the cycle from re-entering until the Indicator’s condition is no longer true. When Reset is on, the strategy checks that the condition has become false (with a configurable buffer) before looping back. This stops the strategy from immediately re-entering while the original signal is still active.
Buffer sets how far the condition must move beyond false before the reset clears. The default is 0.1%. A higher buffer requires more confirmation before the cycle re-enters.
Reset Indicator is only available when the cycle connects back to an Indicator with a complete, valid condition.
Hover over the Reset row in the config panel to see a preview of the inverted condition that will be checked.
Custom Trigger
A manually-built reset condition using the same block builder as the Indicator node. The cycle will not loop until this condition is true.
Use Custom Trigger when your re-entry guard is more specific than the inverse of the Indicator. For example, you could require that RSI drops below 40 before the strategy re-enters, even if the original EMA crossover condition is no longer true.
A status dot on the row shows the state of your workspace:
- Gray: no blocks added yet
- Yellow: blocks present but the condition has errors
- Accent color: condition is complete and ready
Reset Combinator
Visible only when both Reset Indicator and Custom Trigger are on. Controls whether both must be true (AND) or either one is enough (OR) to allow re-entry. Default is AND.
Wait for Close
Visible only when the source Order node has an inline close trigger (a Trigger condition configured on the Order). When on, the strategy waits for that close branch to complete before cycling. Default is on.
Turn this off only if you want the cycle to return to the Indicator before the current position has fully closed.
Examples of the cycle panel
The dashed cycle connection has a ↻ panel at its midpoint. It shows a compact summary of the config:
| Example panel | What it means |
|---|---|
10× | 10 cycles, no delay, no reset |
5× · 10s | 5 cycles with a 10-second delay |
5× · 10s · Reset | 5 cycles, 10-second delay, Reset Indicator on |
3× · Reset · Custom | 3 cycles, both reset conditions active |
The panel is draggable. Grab it and drag to reroute the connection around other nodes on the canvas. Double-click the panel to reset the routing to the default path.
Example: simple re-entry loop
Goal: Re-enter a long BTC position up to 5 times when EMA(12) crosses above EMA(24), with a 30-second cooldown between each entry.
- Build the strategy: Indicator (EMA crossover) connected to an Order node (long BTC).
- Draw a cycle connection from the Order node back to the Indicator.
- In the config panel, set Cycles to 5.
- Enable Time Delay and set it to 30 seconds.
- Enable Reset Indicator so the strategy waits for the EMA crossover to unwind before re-entering.
After each trade closes, the strategy waits 30 seconds, checks that the EMA crossover is no longer true, then returns to the Indicator to watch for the next signal.
Next steps
Now that you’ve configured your cycle, you can backtest your strategy to see how it performs.