Deal Spacing is different than dynamic price filter value

Bug info:
I’m using dynamic price filter 4.2% spacing with multiple deals to cover a price range using DCA bots. I’m attaching the screenshots the distance between deals entry price seems different than which i set on dynamic pricing. in top range space seems less and when price at bottom space seems high.

7.08 - 2.91 = 4.17

40.23 - 37.6 = 2.63

https://app.gainium.io/bot/678f67f9ab6a336e8210bc32?a=1088&aid=share-bot&share=f7828792-9bf5-4c27-85d6-7269fc49487a

we set minimum distance for dynamic price filter with 4.2% so I think space should be same for each deals.

Thank you for reporting this issue, Suresh. We’ve received your bug report regarding the discrepancy in deal spacing related to the dynamic price filter value. It’s clear that you’ve provided valuable details along with the bot URL, which will help us investigate the matter further.

We will look into this and update you shortly. If you have the deal ID associated with these transactions, please share it with us to assist in our investigation.

Seems fine to me. The filter is from the entry price not the average price.


1 Like

The space is calculated geometrically not arithmetically.

-2% = 0.98

  $100 × 0.98 = $98
   $98 × 0.98 = $96.04
$96.04 × 0.98 = $94.1192
...
2 Likes

I’m using dynamic price filter for my strategy, so do you think we can’t calculate what extract deal count we need to cover a given price range.
ex cover 90% price range to down, using 4.2% dynamic price filter 30 deals.
I opened a topic for that DCA Bot with Dynamic price filter + multi deals

If the percentual distance shall always be 4.6% and you want to know how many DCA orders you need to cover 90%, then you only have to solve:

    0.954 ^ x = 0.1
<=>         x = log(0.1) / log(0.954)
<=>         x ~ 49
1 Like

Thanks not DCA orders, i use 3 orders per DCA bot which cover 3% area, so when using dynamic price filter 4.2% from entry price of each deal next deal normally have 3% space between each entry prices, so i divided 90/3 = 30, is this not correct do we really need 49 deals to cover 90% down from a given price.

If this is correct, I think grid bots seems cheaper than DCA bots. :relieved:

Ex: if i want to cover the range on ENS. $6 to $50, do we want 49 Deals

My bot setting is here
https://app.gainium.io/bot/6790704fab6a336e82478cf1?a=1088&aid=share-bot&share=d71284d6-6980-4dcb-a4c9-92daa91e0ee4

also please refer this bot,
currently it drops around 50% from top deal,
it only opened 14 deals.

50% / 14 = 3.57% can cover by a deals
so to cover 90% from $0.87
90% / 3.57% = 25 Deals

https://app.gainium.io/bot/6791039eab6a336e825e56b3?a=1088&aid=share-bot&share=e5924527-2e62-4c8c-86bc-753124807c6d

I don’t understand that calculation. Why should a dynamic price filter of 4.6% result in entry prices 3% apart of each other? And if you want to have a percentual spacing, you cannot divide the total (90) by a single deviation (3) but have to use logarithms.

Bots only do exactly the same if and only if they cost the same at every time. Else there is always a difference in how the bots behave.

You calculate the spacing arithmetically not geometrically. But dynamic price filters use geometric spacing. That’s why if you use under 3.57% and 25 deals than you only cover

(1 - 0.00357) ^ 25 = 0.9643 ^ 25 ~ 0.4 = -60%

1 Like

Here we can see the issue again
this is 1st deal price difference is 4.2%
Screenshot 2025-02-06 at 16-25-31 Trading Bot Gainium App

entry prices of two deals different 0.8895 and 0.8506 is 4.57%

This is 27th deal
Screenshot 2025-02-06 at 16-26-13 Trading Bot Gainium App

entry prices of two deals difference 0.2881 and 0.2817 is 2.27%

so the dynamic price filter seems wrong the space i set is 4.2%

bot url Gainium app

The percentual differences are

(1 - 0.8506/0.8895) * 100 ~ 4.37
(1 - 0.2817/0.2943) * 100 ~ 4.28

That looks quite okay, I think.

I think calculation should like this
(0.8895−0.8506)/0.8506×100=4.57%
(0.2881−0.2817)/0.2817×100=2.27%

why should we use 1 Ex: (1 - 0.8506/0.8895). the dynamic price filter says “Minimum deviation from last deal”

So i think we should use previous deal ex above 0.8895 and 0.2881 to measure different to last deal. not the 1 @aressanch
Screenshot 2025-02-06 at 16-47-21 Trading Bot Gainium App

That’s how you calculate the geometric distance. You’re still thinking arithmetically, which is not how the Dynamic price filter works.

0.8895 - 0.8895 * 4.37% = 0.8506
0.2943 - 0.2943 * 4.28% = 0.2817

I don’t know about any advanced math :sweat_smile:
but settings have 4.2% spacing between last deal entry price and next deal entry price,
according that label, bot should keep that spacing between deals.

above calculation is seems clearly wrong. Even a grade 5 student can tell that if the last deal entry price is 0.2881 and the new deal entry price is 0.2817, the difference is 2.27%, not 4.57%. :flushed:

It’s totally correct as it is.

If you have 100 apples and take 10% away you have 90 apples.
If you have 50 apples and take 10% away you have 45 apples.

according to chat gpt it should be 0.2760 not the 0.2817