generate_trade_frequency {TwitterAutomatedTrading} | R Documentation |
generate_trade_frequency function
Description
generate_trade_frequency function
Usage
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
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)
[Package TwitterAutomatedTrading version 0.1.0 Index]