Rules A and Rules B, and change which one is active instead of editing one set back and forth. A new account starts with an empty scenario; see below.
Scenarios and portfolios
A scenario belongs to you, not to any one portfolio. A portfolio has one active scenario at a time. You can point more than one portfolio at the same scenario, or give each portfolio its own. A new account starts with an empty scenario calledMy rules, active on a portfolio called Main Portfolio. You enter every number; Allocait never picks one for you.
The active scenario
The active scenario is the one a portfolio’s compliance and rebalance are checked against. Only a deliberate act on a scenario sets it:- You pick it in the top-bar switcher, or choose Make active on a scenario in Allocation.
- An agent sets it with
save_portfolioandactive_scenario_id, when you ask. - On the done step of a setup file import, you can pick one from a list.
When none is set
Deleting the active scenario leaves the portfolio with none. Deleting a scenario also deletes its restore points, the saved copies that let you undo a change to its rules, and the past values kept for its rules. You can’t undo a deletion.
Other things you can do
- To look at or edit another scenario without switching, pick it on the Rules or Edit as text tab. An Active tag marks the one in use.
- To add, copy or delete a scenario, use the menu beside its name: Add scenario…, Copy rules to…, Delete scenario….
For agents
An agent sees the same scenarios as the app.list_portfolios returns each scenario with its rule_count and the portfolios that use it. save_scenario creates or renames one, delete_scenario deletes one and needs the confirm_name the user gave, and save_portfolio with active_scenario_id changes the active scenario. get_portfolio_snapshot, check_allocations and check_trades take an optional scenario_id and default to the portfolio’s active scenario. To change a scenario’s rules, see Rules text.
Next steps
- Allocation bands and position sizes describe the rules a scenario holds.
- Write your rules fills a scenario from rules text.