Closed cainiaocome closed 4 years ago
@cainiaocome, indeed RL algorithm itself is agnostic to timeframes and later is used only for correct episode duration handling and proper backtarder startegy iteration. See discussion at #54 Personally from my experience - using tick data is ineffective as it results in too much computation on too noisy data. Some kind of windowed aggregation should be done as preprocessing step. It can be aggregation by elapsed world time (usual time bars) or traded volume threshold (volume bars) or number of events (say, ticks or LOB events) elapsed (event bars). For example, when talking about high-liquidity crypto asset (BTC USD at BITMEX) ~ 10 sec. time bars are ok to learn from.
@cainiaocome, indeed RL algorithm itself is agnostic to timeframes and later is used only for correct episode duration handling and proper backtarder startegy iteration. See discussion at #54 Personally from my experience - using tick data is ineffective as it results in too much computation on too noisy data. Some kind of windowed aggregation should be done as preprocessing step. It can be aggregation by elapsed world time (usual time bars) or traded volume threshold (volume bars) or number of events (say, ticks or LOB events) elapsed (event bars). For example, when talking about high-liquidity crypto asset (BTC USD at BITMEX) ~ 10 sec. time bars are ok to learn from.
Can't agree that tick data is ineffective. Anyway i am trying deep reinforcement learning with high frequency trading. Already managed to feed tick data to bygym, i am out right now and i will post code here later.
@cainiaocome, hey, how about your test of btgym? Is that work fine with other RL framework?
Closed due to long inactivity period.
is it possible to feed tick level data (and some other features other than OHLCV) to btgym, or what should be modified to support tick level data?
tick data example
in above example data, i put same value at open, high, low, close, which is price at that tick, tick interval is 500 ms.
there may be some other feature columns, such as ask price, bid price, ask volume, bid volume, ma.
code here here is doing some calculation related to timeframe, and seems like only support minute timeframe.