# Calculating Average True Range?

**URL:** <https://forums.collective2.com/t/calculating-average-true-range/11814>\
**Category:** C2 Explorer\
**Created:** [August 2, 2018, 11:40pm UTC](https://forums.collective2.com/t/calculating-average-true-range/11814 "2018-08-02T23:40:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_bayley](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/chris_bayley/32/12306_2.png) [@chris\_bayley](https://forums.collective2.com/u/chris_bayley)\
**Post date:** [August 2, 2018, 11:40pm UTC](https://forums.collective2.com/t/calculating-average-true-range/11814/1 "2018-08-02T23:40:07Z")

</div>

I’d like to use ATR as risk indicator when comparing systems but I can’t think of any way to calculate it in C2E given that it would require daily OHLC for the instrument traded.

Any bright ideas you lot?

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![BobSvan2](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/bobsvan2/32/21391_2.png) [@BobSvan2](https://forums.collective2.com/u/BobSvan2)\
**Post date:** [August 3, 2018, 10:20am UTC](https://forums.collective2.com/t/calculating-average-true-range/11814/2 "2018-08-03T10:20:07Z")

</div>

Hi Chris!

OHLC exists but unfortunately it is not publicly available.  
It is a code used inside a function which prepares data for the candle equity chart.  
This code should be extracted and made publicly usable.  
I looked at it and it is not so easy to refactor that code…  
I’ll look when I finish my other planned tasks.  
Send me a message to [help@collective2.com](mailto:help@collective2.com) after 8/13 to remind me. Thanks.
