GUNBOT: The automatic profit generator > General Discussion

Security margin?

(1/1)

maruaria:
I have been thinking the security margin is equal to stop-loss or stop-limit.

So, I set it as 15%, but the bot calculated weirdly.
The last buy price was 154 satoshi, but the security margin was 101 satoshi (65.5% of the buy price).
I think it should be 131 satoshi (85% of the buy price)..

Please explain about the exact formula of security margin.

maruaria:
I think it must be a bug.

The security margin is calculated by the price to buy, not the last buy price..

Now, [security margin] = [price to buy] * (1 - [security margin %])

it should be, [security margin] = [last buy price] * (1 - [security margin %])

Navigation

[0] Message Index

Go to full version