View source: R/fct_plot_momentum.R
plot_momentum | R Documentation |
Follow short term trend after a price jump
plot_momentum( stocks, source = "tws", ema1 = 5, ema2 = 20, ema3 = 200, macd1 = 12, macd2 = 26, macd3 = 9, period = 500, zoom = 0.3 )
stocks |
vector of stock symbols such as c("C", "AAPL") |
source |
where is the data from, "yahoo" for Yahoo Finance or "tws" for for Interactive Brokers TWS. Need a account and data subscription for TWS. |
ema1 |
integer, short exponential moving average (EMA) |
ema2 |
middle EMA |
ema3 |
long EMA |
macd1 |
integer, MACD fast MA |
macd2 |
MACD slow MA |
macd3 |
MACD signal |
period |
number of days to look back |
zoom |
numeric scale of the MACD to display |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.