Template spec
March 28, 2024 ยท View on GitHub
| key | mandatory | values |
|---|---|---|
| :id | yes | algo name |
| :algo | yes | Algo spec |
| :options | yes | Algo options fields in the interactive ui |
| :chart | yes | Chart spec |
| :table | no | Table spec |
| :metrics | no | Metrics spec |
Algo spec
| key | mandatory | values |
|---|---|---|
| :type | yes | :time :trailing-bar |
| :calendar | yes | vector with the market and timeframe: markets [...] timeframes: [....] |
| :asset | yes | default symbol name |
| :trailing-n | yes | default displayed bar amount on chart |
| :import | yes | datafeed for missing bars |
| :feed | yes | datafeed for existing bars |
| :algo | yes | algo namespace incl. function |
| * | no | default custom option values passed to algo function |
Algo options
Array of fields. One field has the following format:
| key | mandatory | values |
|---|---|---|
| :type | yes | :select (Select Box) :string (Input Field) :bool (Checkbox) |
| :path | yes | matching keyword of Algo spec |
| :name | yes | Label of the option field |
| :spec | yes* | array or function (which returns an array) for :select not mandatory for :bool or :string |
Chart spec
| key | mandatory | values |
|---|---|---|
| :viz | yes | chart renderer namespace highchart ns: ta.viz.ds.highchart/highstock-render-spec vega ns: ta.viz.ds.vega/vega-render-spec |
| :viz-options | yes | viz-options spec |
:viz-options (highchart)
| key | mandatory | values |
|---|---|---|
| :chart | yes | chart container options: {:box :fl} :fl = full (100%) :sm = small :md = medium :lg = large |
| :charts | yes | array of indicator panes and main chart itself. Charts options |
Table spec
| key | mandatory | values |
|---|---|---|
| :viz | yes | table renderer namespace table ns: ta.viz.ds.rtable/rtable-render-spec |
| :viz-options | yes | viz-options spec |
TODO: path, column, ....
Metrics spec
| key | mandatory | values |
|---|---|---|
| :viz | yes | metrics renderer namespace metrics ns: ta.viz.ds.metrics/metrics-render-spec |
| :viz-options | yes | viz-options spec |