# How is TREND function calculated in zerodha PI software(tradescript language)

**URL:** https://tradingqna.com/t/how-is-trend-function-calculated-in-zerodha-pi-software-tradescript-language/43063
**Category:** Algos, strategies, code
**Created:** [July 23, 2018, 1:23pm UTC](https://tradingqna.com/t/how-is-trend-function-calculated-in-zerodha-pi-software-tradescript-language/43063 "2018-07-23T13:23:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pranay\_Nandu](https://tradingqna.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@Pranay\_Nandu](https://tradingqna.com/u/Pranay_Nandu)
#### Post date: [July 23, 2018, 1:23pm UTC](https://tradingqna.com/t/how-is-trend-function-calculated-in-zerodha-pi-software-tradescript-language/43063/1 "2018-07-23T13:23:57Z")

</div>

![image](https://tradingqna.com/uploads/default/original/2X/8/89f4a438f78d6bed2747c33d12ec3728d5cac4a9.png)

can anyone explain how the trend function is calculated in zerodha pi

thank you!
