diff --git a/NEWS.md b/NEWS.md index 8825fe0f..cae264a2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/vignettes/reference.Rmd b/vignettes/reference.Rmd index ae924ef3..868e4d4d 100644 --- a/vignettes/reference.Rmd +++ b/vignettes/reference.Rmd @@ -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") ``` @@ -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") ``` @@ -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") ``` diff --git a/vignettes/strategies.Rmd b/vignettes/strategies.Rmd index 588abce5..0bede807 100644 --- a/vignettes/strategies.Rmd +++ b/vignettes/strategies.Rmd @@ -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") ``` diff --git a/vignettes/xoanda.Rmd b/vignettes/xoanda.Rmd index 4b49e7df..d3c1687f 100644 --- a/vignettes/xoanda.Rmd +++ b/vignettes/xoanda.Rmd @@ -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: @@ -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, @@ -542,7 +542,6 @@ layers <- list( ggplot2::coord_flip(), ichimoku:::theme_ichimoku_light() ) - print(ggplot2::ggplot(data = df) + layers) ```