Bentrix Docs
HomePricingDashboard

Portfolio weights

A share for each market of a portfolio — long-only, or long and short within a bound — drawn as stacked areas.

01In plain words

A portfolio is several markets held together. A weights output says what share of the money each market should get: 60 % EURUSD, 40 % GBPUSD. Together the shares add up to the whole.

02An everyday example

A recipe says two thirds flour, one third sugar. Weights are a recipe for a portfolio: how much of each ingredient.

Portfolio weights: each market's share stacked A drawing of the idea, not a picture of the application.

03How to read it on the chart

  • The pane stacks each market's share on top of the others, a colour each. Where a colour's band grows, the model wants more of that market.

04Giving it a meaning

Like a position, weights are already a decision. A strategy follows them with the Target slot.

05Watch out for

  • Every market the weights name must be on the workbench. One that is not is refused, by name.
  • Weights are judged only in money, by a laboratory strategy that follows them.

06For programmers: what to hand Bentrix

One {"w": {market: weight}}, and either long_only: true (each weight from 0 to 1, summing to 1) or a gross bound for long and short weights. Every market it names must be on the workbench; one that is not is refused by name.

spec = bentrix.Output.weights("risk_parity", "EURUSD", anchor_ms, {"EURUSD": 0.6, "GBPUSD": 0.4}, long_only=True)

07What the pane shows

Stacked areas, a colour a market, from 0 to 1 for a long-only portfolio.

08What is measured

As a position: in money, by a laboratory strategy run that follows it.

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed