Feature request: Separate price formulas for positive and negative marketprice (p)

Some providers use different price formulas depending on negative or positive marketprices.
It would be nice to be able to specify this for the DESS sell and buy settings. E.g. enter a buy formula for p < 0 and a buy formula for p > 0. (and the same for sell off coarse :wink:

Come to think of it, maybe even better would be to allow some simple if-then-else in the formula so we have some finer control :

if  p < 0 then
    (p + 0.02) * 1.21
elsif p == 0 then
    0.04
else
    (p + 0.02) * 1.10 * 1.21
2 Likes