You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Describe Request
This PR introduces `.gomarkdoc.yml` which includes default configuration
of gomarkdoc.
This way, we can reuse the same configuration across multiple
invocations such as `pre-commit.sh` and github workflow.
Also, docs are updated by executing pre-commit.sh.
Fixed # partially #172
# Change Type
Docs.
## type [Report](<https://github.com/cinar/indicator/blob/master/helper/report.go#L53-L55>)
1053
+
## type [Report](<https://github.com/cinar/indicator/blob/master/helper/report.go#L48-L54>)
1045
1054
1046
1055
Report generates an HTML file containing an interactive chart that visually represents the provided data and annotations.
1047
1056
1048
1057
The generated HTML file can be opened in a web browser to explore the data visually, interact with the chart elements, and view the associated annotations.
NewReport takes a channel of time as the time axis and returns a new instance of the Report struct. This instance can later be used to add data and annotations and subsequently generate a report.
@@ -1072,7 +1085,7 @@ func (r *Report) AddChart() int
1072
1085
AddChart adds a new chart to the report and returns its unique identifier. This identifier can be used later to refer to the chart and add columns to it.
WriteToFile writes the generated report content to a file with the specified name. This allows users to conveniently save the report for later viewing or analysis.
WriteToWriter writes the report content to the provided io.Writer. This allows the report to be sent to various destinations, such as a file, a network socket, or even the standard output.
1100
1113
1101
1114
<a name="ReportColumn"></a>
1102
-
## type [ReportColumn](<https://github.com/cinar/indicator/blob/master/helper/report.go#L23-L35>)
1115
+
## type [ReportColumn](<https://github.com/cinar/indicator/blob/master/helper/report.go#L28-L40>)
1103
1116
1104
1117
ReportColumn defines the interface that all report data columns must implement. This interface ensures that different types of data columns can be used consistently within the report generation process.
Report processes the provided asset snapshots and generates a report annotated with the recommended actions.
251
251
252
252
<a name="Backtest"></a>
253
-
## type [Backtest](<https://github.com/cinar/indicator/blob/master/strategy/backtest.go#L44-L65>)
253
+
## type [Backtest](<https://github.com/cinar/indicator/blob/master/strategy/backtest.go#L44-L68>)
254
254
255
255
Backtest function rigorously evaluates the potential performance of the specified strategies applied to a defined set of assets. It generates comprehensive visual representations for each strategy\-asset pairing.
256
256
@@ -271,12 +271,15 @@ type Backtest struct {
271
271
272
272
// WriteStrategyReports indicates whether the individual strategy reports should be generated.
273
273
WriteStrategyReports bool
274
+
275
+
// DateFormat is the date format that is used in the reports.
## type [Kama](<https://github.com/cinar/indicator/blob/master/trend/kama.go#L39-L48>)
685
+
## type [Kama](<https://github.com/cinar/indicator/blob/master/trend/kama.go#L38-L47>)
686
686
687
687
Kama represents the parameters for calculating the Kaufman's Adaptive Moving Average \(KAMA\). It is a type of moving average that adapts to market noise or volatility. It tracks prices closely during periods of small price swings and low noise.
688
688
@@ -715,7 +715,7 @@ type Kama[T helper.Number] struct {
0 commit comments