plot_momentum: Follow short term trend after a price jump

View source: R/fct_plot_momentum.R

plot_momentumR Documentation

Follow short term trend after a price jump

Description

Follow short term trend after a price jump

Usage

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

Arguments

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


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