{% extends 'base.html' %}{% block title %}Strategy editor · Admin Studio · Quantzy{% endblock %}{% block content %}
← Admin Studio

STRATEGY EDITOR

{{ 'Refine your strategy.' if existing else 'Start with an idea.' }}

Draft changes stay private until you publish a new version. Existing deployments keep their selected version.

{% if request.args.get("saved") %}

Draft saved. Source format and inputs are valid; your changes are not published yet.

{% elif request.args.get("published") %}

New version published. Existing deployments keep their selected version.

{% endif %}{% if error %}{% endif %}
Available broker IDs

{% for id,name in brokers.items() %}{{ id }} ({{ name }}){% if not loop.last %}, {% endif %}{% endfor %}

Customer-facing information

Only this overview, the summary, risk notes and capital guidance are shown to customers. Keep proprietary rules in the private notes below.

Read JSON inputs from os.environ['QUANTZY_PARAMETERS']Use OPENALGO_API_KEY and OPENALGO_HOST for the selected account. Never embed credentials. Signals-only code must not call order endpoints. The execution label is a declaration, not a code sandbox.

All inputs are private by default. To expose a numeric allocation, capital, quantity or lots control, explicitly add "customer_visible": true. Trading rules and indicator parameters cannot be customer-visible.

Input schema example
[{"key":"quantity","label":"Quantity","type":"integer","default":1,"min":1,"max":100},
 {"key":"symbol","label":"Symbol","type":"text","default":"RELIANCE"},
 {"key":"exchange","label":"Exchange","type":"select","default":"NSE","options":["NSE","NFO"]}]

Test the draft in your private development environment before publishing. Customers have no strategy editor or raw log access.

Saving validates source format and the input schema without executing the code. It does not verify trading logic, returns, dependency availability or broker compatibility.

Drafts are visible only to administrators.
{% if existing %}

RELEASE A VERSION

Ready for the collection?

This publishes the last saved draft. Save your edits above before publishing. Existing deployments remain unchanged.

{% if versions %}

Published versions

{% for version in versions %}
Version {{ version.number }}{{ version.checksum[:16] }}Immutable
{% endfor %}
{% endif %}{% endif %} {% endblock %}