# Code to filter stoks

**URL:** https://tradingqna.com/t/code-to-filter-stoks/195904
**Category:** Streak - backtesting
**Created:** [July 13, 2026, 10:14am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904 "2026-07-13T10:14:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Rocking\_Rocky](https://tradingqna.com/user_avatar/tradingqna.com/rocking_rocky/32/76037_2.png) [@Rocking\_Rocky](https://tradingqna.com/u/Rocking_Rocky)
#### Post date: [July 13, 2026, 10:14am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904/1 "2026-07-13T10:14:44Z")

</div>

I need to find stocks whose rage difference from high to low is twice its ATR value. Can any one help me with this one???

---

<div class="post-metadata">

### Author: ![Sankalp](https://tradingqna.com/user_avatar/tradingqna.com/sankalp/32/75934_2.png) [@Sankalp](https://tradingqna.com/u/Sankalp)
#### Post date: [July 13, 2026, 10:27am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904/2 "2026-07-13T10:27:55Z")

</div>

@Streak

---

<div class="post-metadata">

### Author: ![Streak](https://tradingqna.com/user_avatar/tradingqna.com/streak/32/89355_2.png) [@Streak](https://tradingqna.com/u/Streak)
#### Post date: [July 13, 2026, 10:31am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904/3 "2026-07-13T10:31:05Z")

</div>

Hi @Rocking_Rocky Refer the below conditions shared as per your requirement.

 ![WhatsApp Image 2026-07-13 at 3.59.04 PM](https://tradingqna.com/uploads/default/original/3X/8/9/89662dac46b968cc96e9746cd291b18347b7329c.jpeg)

Hope this helps.

---

<div class="post-metadata">

### Author: ![samuel-7](https://tradingqna.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@samuel-7](https://tradingqna.com/u/samuel-7)
#### Post date: [July 13, 2026, 11:18am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904/4 "2026-07-13T11:18:54Z")

</div>

How to find stocks that are in a consolidation range of 10 days?

---

<div class="post-metadata">

### Author: ![trademania95](https://tradingqna.com/user_avatar/tradingqna.com/trademania95/32/77893_2.png) [@trademania95](https://tradingqna.com/u/trademania95)
#### Post date: [July 13, 2026, 11:27am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904/5 "2026-07-13T11:27:10Z")

</div>

Thanks for this team

---

<div class="post-metadata">

### Author: ![Streak](https://tradingqna.com/user_avatar/tradingqna.com/streak/32/89355_2.png) [@Streak](https://tradingqna.com/u/Streak)
#### Post date: [July 13, 2026, 11:53am UTC](https://tradingqna.com/t/code-to-filter-stoks/195904/6 "2026-07-13T11:53:02Z")

</div>

@samuel-7 Please refer the image below and make necessary changes as per your discretion.

 ![image](https://tradingqna.com/uploads/default/original/3X/7/3/73d3fc9e88ede2058523b38b64f032cacc1b9e09.png)

Hope this helps.
