Username: Password:

Author Topic: Security margin?  (Read 19335 times)

Offline maruaria

  • Rookie
  • *
  • Posts: 3
    • View Profile
Security margin?
« 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.
« Last Edit: May 25, 2017, 02:19:49 PM by maruaria »

Offline maruaria

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Security margin?
« Reply #1 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 %])