Max open deals: -1 enhancements

Currently ASAP only opens a single deal, whatever

Max deals amount

we configure, if Dynamic price filter is turned off.

But if it is turned on it depends on the filter, how many deals can be opened and at what levels. In the deals direction at most a few. Against it and in sideways the maximum possible deals.

On the other hand

RSI-7 1min > 1

gives us the maximum amount of simultaneous deals for a pair because it opens a new one every minute.

I think -1 should be fixed in general.

Use -1 internal but name it max. I know for sure, that what you see at the surface hasn’t to be what you store in the database.

Make sure that we cannot select 2, 3, …, max, if only 1 is working.

If ASAP only opens 1 simultaneous deal per pair, maybe add a timeframe to allow more than 1 simultaneous deal so that we don’t have to use the RSI-7 1min > 1 hack.

(Source: Bug -1 max open deal - #4 by d_yo_r)