Giter Site home page Giter Site logo

Stoploss not triggered about crypto-bot HOT 3 CLOSED

pascal00d avatar pascal00d commented on July 17, 2024
Stoploss not triggered

from crypto-bot.

Comments (3)

iilunin avatar iilunin commented on July 17, 2024

Hello,

That's correct behavior.

Trailing stop loss activates only after at least one target is completed.

https://github.com/iilunin/crypto-bot/blob/master/Docs/FLOW.md#stop-loss

from crypto-bot.

pascal00d avatar pascal00d commented on July 17, 2024

I understand that trailing stop loss is activated only after at least one target is completed.
But when I read the documentation I understand that before that event the stop loss is defined as Fixed with the price in initial_target:
In TRAILING mode initial target stop loss settings used by default, and actual trailing is enabled after the first target completed.

"stoploss": {
"type": "TRAILING",
"threshold": "10%",
"initial_target": {
"price": "0.29800000",
"vol": "100%"
}
}

If I compare with your exeample 2, it's like if in my case the step 1 has failed.

https://github.com/iilunin/crypto-bot/blob/master/Docs/TRADE_FILE_EXAMPLES.md#example-2-trx-btc-trailing
1. Default stop loss price is 00000650. If it hits before target one (00000850), then the order is completed.

from crypto-bot.

iilunin avatar iilunin commented on July 17, 2024

You're right. There is a mistake in this example. Trailing stop loss won't be activated by default unless at least one target is completed. I'll update this document.

from crypto-bot.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.