Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard50 committed Mar 28, 2024
1 parent b9601ad commit be48e50
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Welcome to the documentation for Quanta! This repository contains all the necess
- Study
- [Dataquality Bybit](study-dataquality-bybit.md)
- [Template spec](template-spec.md)
- [Zipline](zipline.md)
17 changes: 9 additions & 8 deletions docs/template-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
| :import | yes | datafeed for missing bars |
| :feed | yes | datafeed for existing bars |
| :algo | yes | algo namespace incl. function |
| * | no | custom params passed to algo function as options |
| * | no | default custom option values passed to algo function |

# Algo options
Array of fields. One field has the following format:
Expand All @@ -29,7 +29,7 @@ Array of fields. One field has the following format:
| :type | yes | :select (Select Box)<br/>:string (Input Field)<br/>:bool (Checkbox) |
| :path | yes | matching keyword of [Algo spec](#algo-spec) |
| :name | yes | Label of the option field |
| :spec | yes* | array of or function (which returns an array) for :select<br/>not mandatory for :bool or :string |
| :spec | yes* | array or function (which returns an array) for :select<br/>not mandatory for :bool or :string |

# Chart spec
| key | mandatory | values |
Expand All @@ -38,13 +38,11 @@ Array of fields. One field has the following format:
| :viz-options | yes | viz-options spec |

### :viz-options (highchart)
| key | mandatory | values |
|---------|-----------|------------------------------------------------------------------------------------------------|
| :chart | yes | |
| :charts | yes | array of indicator panes and main chart itself. an indicator is referenced by a tdm column key |
| key | mandatory | values |
|---------|-----------|-----------------------------------------------------------------------------------------------------------------|
| :chart | yes | chart container options: {:box :fl}<br/><br/>:fl = full (100%)<br/>:sm = small<br/>:md = medium<br/>:lg = large |
| :charts | yes | array of indicator panes and main chart itself. [Charts options](chart-spec.md) |

### Line colors
TODO

# Table spec

Expand All @@ -53,6 +51,9 @@ TODO
| :viz | yes | table renderer namespace<br/>**table ns:** ta.viz.ds.rtable/rtable-render-spec |
| :viz-options | yes | viz-options spec |

TODO: path, column, ....


# Metrics spec
| key | mandatory | values |
|--------------|-----------|--------------------------------------------------------------------------------------|
Expand Down
2 changes: 2 additions & 0 deletions lib/indicator/test/ta/indicator/util/fuzzy.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(ns ta.indicator.util.fuzzy)

; from https://github.com/jjttjj/trateg/blob/master/src/trateg/core.clj

(def diff-tolerance 0.0000000001)

(defn fuzzy=
Expand Down

0 comments on commit be48e50

Please sign in to comment.