Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Possible to segment price action by ticks?

Hi folks -

I'm new to Quantopian. Just trying to figure out how to translate some stuff written for ThinkorSwim.

Is it possible to segment price action by ticks or by range? Say I wanted my data to have a granularity of 5 ticks instead by minutes...

Pointers and feedback appreciated.

Chris

3 responses

Hi Chris,

Not sure what you mean. On Q, you only get minutely OHLCV bars. There are no ticks, as I understand them:

http://www.investopedia.com/terms/t/tick.asp

Grant

Hi Grant,

Sorry I wasn't clear.

I'm referring to these kinds of momentum bars:

https://tlc.thinkorswim.com/center/charting/charts/Aggregation-Types/rangebars.html

I assume it must be possible to aggregate data based on price accumulation using OHLCV.

Best,

Chris

Chris,

The Python code is very versatile, with lots of useful modules that can be imported. However, if you need to do visualizations, the IDE backtester is not the way to go. I'd recommend looking into the research environment (you may need to request access). That said, if you know how to write code to generate the buy/sell signals you need, without visualization, then you could just jump right into the backtester.

Anyway, that's my novice perspective. Maybe someone with more trading experience can chime in.

Grant