generate_trade_frequency: generate_trade_frequency function

Description Usage Arguments Value Examples

View source: R/generate_trade_frequency.R

Description

generate_trade_frequency function

Usage

1
generate_trade_frequency(initial_time, final_time, freq_trade)

Arguments

initial_time

The time the algorithm starts trading.

final_time

The time the algorithm ends trading.

freq_trade

The frequency which the algorithm recalculates the sentiment index.

Value

A vector containing the hours of operation.

Examples

1
2
3
hours_candle_10 <- generate_trade_frequency(9,17,10)
#For example, for 17:30, you should use minutes/60, i.e. 17.5
hours_candle_20 <- generate_trade_frequency(9,17.5,10)

TwitterAutomatedTrading documentation built on July 1, 2020, 5:48 p.m.