Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

to_ticks

Convert candles to ticks


Description

Convert candles to ticks

Usage

to_ticks(x)

Arguments

x

candles, read 'Candles' in Processor

Details

Convert OHLCV candles to ticks using the following model. One candle is equivalent to four ticks ( time, price, volume ): ( time - period, open, volume / 4 ); ( time - period / 2, high, volume / 4 ); ( time - period / 2, low, volume / 4 ); ( time - period / 100, close, volume / 4 ). Assuming provided candles have frequent period ( less than a minute ) it is a good approximation for tick data which can be used to speed up back testing or if no raw tick data available.

Examples

data( ticks )
candles = to_candles( ticks, timeframe = 60 )
to_ticks( candles )

QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.