---
id: faq_item.1401
page_type: faq_article
title: "The Avg(X,Y) formula has been added to the Moonbot terminal for the parameters of the EMA formulas (CustomEMA and SellByCustomEMA). How can I use it?"
description: "For the parameters of the EMA formulas (CustomEMA and SellByCustomEMA), an Avg(X,Y) average price comparison formula has been added to the Moonbot terminal; for..."
section: faq
category: "Strategy settings"
url: https://moonbot.pro/faq/strategy-settings/1401?format=md
locale: en
alternate_ru: https://moonbot.pro/ru/faq/strategy-settings/1401?format=md
alternate_zh: https://moonbot.pro/zh/faq/strategy-settings/1401?format=md
parent: https://moonbot.pro/faq/strategy-settings?format=md
previous: https://moonbot.pro/faq/strategy-settings/1400?format=md
next: https://moonbot.pro/faq/strategy-settings/1402?format=md
status: published
updated_at: 2026-11-19T11:51:03+03:00
---

# The Avg(X,Y) formula has been added to the Moonbot terminal for the parameters of the EMA formulas (CustomEMA and SellByCustomEMA). How can I use it?

For the parameters of the EMA formulas (CustomEMA and SellByCustomEMA), an Avg(X,Y) average price comparison formula has been added to the Moonbot terminal; formulas are recorded by analogy with the EMA(X,Y) formulas, that is, the average price X seconds or minutes ago and the average price Y seconds or minutes ago are compared. If Y=1, then the current price is taken. \
The average price line (Avg Price) can be seen on the coin's chart if you click on the "Show Spot trades\\OrderBook" button (to the right of the M button) and then check the "Avg Price" box.

## Navigation

Path: [Main](https://moonbot.pro/?format=md) / [FAQ](https://moonbot.pro/faq?format=md) / [Strategy settings](https://moonbot.pro/faq/strategy-settings?format=md) / The Avg(X,Y) formula has been added to the Moonbot terminal for the parameters of the EMA formulas (CustomEMA and SellByCustomEMA). How can I use it?

Parent section: [Strategy settings](https://moonbot.pro/faq/strategy-settings?format=md)

Previous: [Is the BinanceTokenTags filter available on all exchanges in the Moonbot terminal?](https://moonbot.pro/faq/strategy-settings/1400?format=md)

Next: [The formula Vol(X,Y) has been added to the Moonbot terminal for the parameters of the EMA formulas (CustomEMA and SellByCustomEMA). How can I use it?](https://moonbot.pro/faq/strategy-settings/1402?format=md)

## Related

- [The formula Vol(X,Y) has been added to the Moonbot terminal for the parameters of the EMA formulas (CustomEMA and SellByCustomEMA). How can I use it?](https://moonbot.pro/faq/strategy-settings/1402?format=md)
- [Do triggers persist after restarting the Moonbot terminal?](https://moonbot.pro/faq/strategy-settings/1403?format=md)
- [I have a lot of strategies that use cross triggers for their work, won't there be a drop in the speed of the Moonbot terminal in this case?](https://moonbot.pro/faq/strategy-settings/1404?format=md)
- [In what format is the PriceDownTimer parameter set in the Moonbot terminal in the strategy settings?](https://moonbot.pro/faq/strategy-settings/1405?format=md)
- [In what format is the PriceDownDelay parameter set in the Moonbot terminal in the strategy settings?](https://moonbot.pro/faq/strategy-settings/1406?format=md)
