powered by
generate_trade_frequency function
generate_trade_frequency(initial_time, final_time, freq_trade)
The time the algorithm starts trading.
The time the algorithm ends trading.
The frequency which the algorithm recalculates the sentiment index.
A vector containing the hours of operation.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab