plot_momentum_: Plot momentum of a stock

View source: R/fct_plot_momentum.R

plot_momentum_R Documentation

Plot momentum of a stock

Description

Plot momentum of a stock

Usage

plot_momentum_(
  symbol,
  source = "tws",
  ema1 = 5,
  ema2 = 20,
  ema3 = 200,
  macd1 = 12,
  macd2 = 26,
  macd3 = 9,
  period = 500,
  zoom = 0.3
)

Arguments

symbol

stock symbol such as "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


GL-Li/twstrade documentation built on April 2, 2022, 11:56 p.m.