# Condition for ema 

**URL:** https://tradingqna.com/t/condition-for-ema/194396
**Category:** Streak - backtesting
**Created:** [May 26, 2026, 12:10pm UTC](https://tradingqna.com/t/condition-for-ema/194396 "2026-05-26T12:10:32Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Neeraj1](https://tradingqna.com/user_avatar/tradingqna.com/neeraj1/32/74060_2.png) [@Neeraj1](https://tradingqna.com/u/Neeraj1)
#### Post date: [May 26, 2026, 12:10pm UTC](https://tradingqna.com/t/condition-for-ema/194396/1 "2026-05-26T12:10:32Z")

</div>

Can you help me creating narrow range for ema ??

---

<div class="post-metadata">

### Author: ![NithinKS](https://tradingqna.com/letter_avatar_proxy/v4/letter/n/f19dbf/32.png) [@NithinKS](https://tradingqna.com/u/NithinKS)
#### Post date: [May 26, 2026, 12:13pm UTC](https://tradingqna.com/t/condition-for-ema/194396/2 "2026-05-26T12:13:59Z")

</div>

@Neeraj1

You can try this condition

 ![image](https://tradingqna.com/uploads/default/original/3X/0/b/0b4979736fd43b3b57ac5f9ee547d9b71dbec266.png)

---

<div class="post-metadata">

### Author: ![Pawan\_Putra\_1819](https://tradingqna.com/user_avatar/tradingqna.com/pawan_putra_1819/32/75784_2.png) [@Pawan\_Putra\_1819](https://tradingqna.com/u/Pawan_Putra_1819)
#### Post date: [May 26, 2026, 12:59pm UTC](https://tradingqna.com/t/condition-for-ema/194396/3 "2026-05-26T12:59:05Z")

</div>

what does it signify?

---

<div class="post-metadata">

### Author: ![Lekhraj\_R](https://tradingqna.com/user_avatar/tradingqna.com/lekhraj_r/32/89348_2.png) [@Lekhraj\_R](https://tradingqna.com/u/Lekhraj_R)
#### Post date: [May 27, 2026, 10:43am UTC](https://tradingqna.com/t/condition-for-ema/194396/4 "2026-05-27T10:43:21Z")

</div>

It is just calculating the difference between 2 ema is less than 0.1 %

---

<div class="post-metadata">

### Author: ![Pawan\_Putra\_1819](https://tradingqna.com/user_avatar/tradingqna.com/pawan_putra_1819/32/75784_2.png) [@Pawan\_Putra\_1819](https://tradingqna.com/u/Pawan_Putra_1819)
#### Post date: [May 27, 2026, 12:15pm UTC](https://tradingqna.com/t/condition-for-ema/194396/5 "2026-05-27T12:15:07Z")

</div>

ok thanks but what if I need a range ?

---

<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: [May 29, 2026, 4:23am UTC](https://tradingqna.com/t/condition-for-ema/194396/6 "2026-05-29T04:23:08Z")

</div>

Please write to **support@streak.tech** with the requirements and the team shall assist you.

---

<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: [May 29, 2026, 6:31am UTC](https://tradingqna.com/t/condition-for-ema/194396/7 "2026-05-29T06:31:30Z")

</div>

Looking at this condition it feels like there’s still so much to learn in Streak.

By learning these features properly, we can create many interesting conditions patterns and range-based setups

---

<div class="post-metadata">

### Author: ![NithinKS](https://tradingqna.com/letter_avatar_proxy/v4/letter/n/f19dbf/32.png) [@NithinKS](https://tradingqna.com/u/NithinKS)
#### Post date: [May 29, 2026, 6:37am UTC](https://tradingqna.com/t/condition-for-ema/194396/8 "2026-05-29T06:37:05Z")

</div>

@samuel-7 yes, you can create many more interesting patterns and conditions with it 🙂  
If you need any help with condition creation, you can ask here or reach out to Streak support, they do help a lot.

---

<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: [June 3, 2026, 9:21am UTC](https://tradingqna.com/t/condition-for-ema/194396/9 "2026-06-03T09:21:31Z")

</div>

Can anyone help me create a condition for the nifty50 index - if the day’s 1st 5min candle is green and the 2nd candle is red and when price is crosses above the 1st candle high an entry should trigger with sl as 50 points and tp 100 pointa

---

<div class="post-metadata">

### Author: ![Pawan\_Putra\_1819](https://tradingqna.com/user_avatar/tradingqna.com/pawan_putra_1819/32/75784_2.png) [@Pawan\_Putra\_1819](https://tradingqna.com/u/Pawan_Putra_1819)
#### Post date: [June 3, 2026, 9:40am UTC](https://tradingqna.com/t/condition-for-ema/194396/10 "2026-06-03T09:40:11Z")

</div>

how to define 1st and 2st 5 min candle on streak btw? any idea

---

<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: [June 3, 2026, 10:02am UTC](https://tradingqna.com/t/condition-for-ema/194396/11 "2026-06-03T10:02:00Z")

</div>

@samuel-7 @Pawan_Putra_1819 The Nth Candle feature can be used to meet your requirement, as demonstrated below.

 ![image](https://tradingqna.com/uploads/default/original/3X/4/2/42e7155029b6fe85636e3167f970170c0eec306a.png)

Hope this helps.

---

<div class="post-metadata">

### Author: ![Neeraj1](https://tradingqna.com/user_avatar/tradingqna.com/neeraj1/32/74060_2.png) [@Neeraj1](https://tradingqna.com/u/Neeraj1)
#### Post date: [June 6, 2026, 10:31am UTC](https://tradingqna.com/t/condition-for-ema/194396/12 "2026-06-06T10:31:49Z")

</div>

The next feature I would like to see in streak is a custom dashboard. Like you can have what is required remove what is not required from the dashboard

---

<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: [June 9, 2026, 11:15am UTC](https://tradingqna.com/t/condition-for-ema/194396/13 "2026-06-09T11:15:07Z")

</div>

What does abs function in Streak do?

---

<div class="post-metadata">

### Author: ![Neeraj1](https://tradingqna.com/user_avatar/tradingqna.com/neeraj1/32/74060_2.png) [@Neeraj1](https://tradingqna.com/u/Neeraj1)
#### Post date: [June 9, 2026, 11:20am UTC](https://tradingqna.com/t/condition-for-ema/194396/14 "2026-06-09T11:20:20Z")

</div>

The ABS function returns the positive value of a number, ignoring whether it is positive or negative.

example:

ABS(10) = 10  
ABS(-10) = 10

It measures the magnitude of a price difference regardless of direction.

---

<div class="post-metadata">

### Author: ![Pawan\_Putra\_1819](https://tradingqna.com/user_avatar/tradingqna.com/pawan_putra_1819/32/75784_2.png) [@Pawan\_Putra\_1819](https://tradingqna.com/u/Pawan_Putra_1819)
#### Post date: [June 9, 2026, 12:05pm UTC](https://tradingqna.com/t/condition-for-ema/194396/15 "2026-06-09T12:05:53Z")

</div>

helpful

---

<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: [June 10, 2026, 11:33am UTC](https://tradingqna.com/t/condition-for-ema/194396/16 "2026-06-10T11:33:51Z")

</div>

Thanks 🙌

---

<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: [June 11, 2026, 10:12am UTC](https://tradingqna.com/t/condition-for-ema/194396/17 "2026-06-11T10:12:46Z")

</div>

What is abs in up by/ down by comparator?

---

<div class="post-metadata">

### Author: ![Neeraj1](https://tradingqna.com/user_avatar/tradingqna.com/neeraj1/32/74060_2.png) [@Neeraj1](https://tradingqna.com/u/Neeraj1)
#### Post date: [June 11, 2026, 11:15am UTC](https://tradingqna.com/t/condition-for-ema/194396/18 "2026-06-11T11:15:18Z")

</div>

It will consider in terms of absolute number instead of percentage
