Skip to content

Commit

Permalink
adds news item & alt text to vignette images
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Aug 18, 2024
1 parent c52fcf9 commit 9df402d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#### Updates:

* Fixes cases of asymmetric (type 3) strategies not generating entry signals if the exit condition not yet been met (thanks @bbac63 #9).
* Internal performance enhancements.

# ichimoku 1.5.3
Expand Down
3 changes: 3 additions & 0 deletions vignettes/reference.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ Call `plot()` on an ichimoku object to visualize the cloud chart.
The example below demonstrates some of the arguments that can be supplied to customise the plot.

```{r plot2}
#| fig.alt: ichimoku cloud plot of sample data series
plot(cloud, window = "2020-05/", ticker = "SYM (JSE)", subtitle = "Sample Data Series")
```

Expand Down Expand Up @@ -275,6 +276,7 @@ The fast S-type line is calculated as 100 times the ratio of the closing price m
Note the difference to the usual stochastic oscillator definition where the slow line is a 3-period moving average of the fast line.

```{r plots}
#| fig.alt: ichimoku cloud plot using solarized theme, with windowed data and an S-type oscillator sub-plot
plot(cloud, window = "2020-04-01/2020-12-01", theme = "solarized", type = "s")
```

Expand All @@ -287,6 +289,7 @@ The character string supplied to 'custom' is a regular expression pattern that i
To view a custom sub-plot, type must be specified as either 'bar' or 'line' as the type setting takes precedence (with a default of 'none').

```{r plotbar}
#| fig.alt: ichimoku cloud plot using mono theme and with a bar-type sub-plot
plot(kumo, window = "2020-04/2020-11", theme = "mono", type = "bar", custom = "volume")
```

Expand Down
1 change: 1 addition & 0 deletions vignettes/strategies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ See [strategy summary specification](#strategy-summary-specification) for detail
### 4. Visualize by calling `plot()` or `iplot()`.

```{r plot}
#| fig.alt: strategy-augmented ichimoku cloud plot using dark theme
plot(strat, theme = "dark")
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/xoanda.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ As all parameters can be set interactively in-app, `oanda_studio()` may be calle
```{r oandas, eval=FALSE}
oanda_studio()
```
![](oanda-studio.jpg)
![screenshot of oanda_studio instance showing the data cursor](oanda-studio.jpg)

The following additional parameters can be used to customise the behaviour of the Shiny environment:

Expand Down Expand Up @@ -257,7 +257,7 @@ df <- oanda_positions("GBP_JPY")
```

```{r oandaposchart, echo=FALSE}
#| fig.alt: sample positions chart for GBPJPY
df <- structure(list(price = c(124.75, 124.85, 124.9, 124.95, 125.05,
125.2, 125.25, 125.3, 125.35, 125.4, 125.5, 125.6, 125.7, 125.85,
126, 126.2, 126.4, 126.5, 126.55, 126.65, 126.7, 126.75, 126.85,
Expand Down Expand Up @@ -542,7 +542,6 @@ layers <- list(
ggplot2::coord_flip(),
ichimoku:::theme_ichimoku_light()
)
print(ggplot2::ggplot(data = df) + layers)
```
Expand Down

0 comments on commit 9df402d

Please sign in to comment.