---
id: faq_item.1323
page_type: faq_article
title: "Can you give me an example of how to set up a Spread with decoding?"
description: "Example of setting the Spread strategy with decoding: TimeInterval=5 sec. TradesDensity=100 PriceIntervals=5 PriceSpread=0.3 IntervalsForBuySpread=2 BuyPriceInS..."
section: faq
category: "Strategy settings"
url: https://moonbot.pro/faq/strategy-settings/1323?format=md
locale: en
alternate_ru: https://moonbot.pro/ru/faq/strategy-settings/1323?format=md
alternate_zh: https://moonbot.pro/zh/faq/strategy-settings/1323?format=md
parent: https://moonbot.pro/faq/strategy-settings?format=md
previous: https://moonbot.pro/faq/strategy-settings/1322?format=md
next: https://moonbot.pro/faq/strategy-settings/1324?format=md
status: published
updated_at: 2026-11-18T01:15:21+03:00
---

# Can you give me an example of how to set up a Spread with decoding?

Example of setting the Spread strategy with decoding:\
TimeInterval=5 sec. \
TradesDensity=100\
PriceIntervals=5 \
PriceSpread=0.3\
IntervalsForBuySpread=2\
BuyPriceInSpread=5\
SellPriceInSpread=100\
BuyOrderReduce=100

From these settings, it follows that there was a 0.3% (PriceSpread=0.3) or higher price movement every second for the last 5 seconds (TimeInterval=5). To calculate the Buy and Sell orders, we take the last 2 intervals (IntervalsForBuySpread=2), set Buy order at +5% (BuyPriceInSpread=5) of the minimum price value, and set Sell order at maximum +100% (SellPriceInSpread=100). In this case, if the given volume for 100ms (BuyOrderReduce=100) is less than the OrderSize of the strategy, an order equal to the volume will be placed.

## 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) / Can you give me an example of how to set up a Spread with decoding?

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

Previous: [How can I check in the log the operation of the "reduce order size" function when the Spread strategy is running?](https://moonbot.pro/faq/strategy-settings/1322?format=md)

Next: [What is the meaning of the symbols that can be seen on the chart when the "Spread" strategy is operating?](https://moonbot.pro/faq/strategy-settings/1324?format=md)

## Related

- [What is the meaning of the symbols that can be seen on the chart when the "Spread" strategy is operating?](https://moonbot.pro/faq/strategy-settings/1324?format=md)
- [Can I run several Spread strategies in the Moonbot at once?](https://moonbot.pro/faq/strategy-settings/1325?format=md)
- [When should the MoonHook strategy be used?](https://moonbot.pro/faq/strategy-settings/1326?format=md)
- [What are the MoonHook strategy specific parameters?](https://moonbot.pro/faq/strategy-settings/1327?format=md)
- [Does the BuyModifier parameter in MoonHook affect the width and depth of the corridor in which the Buy orders move?](https://moonbot.pro/faq/strategy-settings/1328?format=md)
