Gunthy

GUNBOT: The automatic profit generator => General Discussion => Topic started by: maruaria on May 25, 2017, 04:19:56 AM

Title: Security margin?
Post by: maruaria on May 25, 2017, 04:19:56 AM
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.
Title: Re: Security margin?
Post by: maruaria on May 25, 2017, 12:27:59 PM
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 %])