Comments (4)
- A global stoploss of -0.007 is 0.7% relative to trade open. It is a percentage, not a price or "point"-relative value. Similarly, your trailing stoploss percentage values are far too tight for backtesting.
- Check the telegram command documentation: https://www.freqtrade.io/en/stable/telegram-usage/#status
- This is likely because you have
trailing_stop
set to True. Please read the documentation as to what this option means. - I'd have to do some checking, but I'm not sure if you can cancel an open limit order through telegram (perhaps forceexit works? I've never tried it with an unfilled order)
- No.
from freqtrade.
There's no "startup time" for a bot (not unless you do something in your strategy requiring this).
Now i find your stoploss is WAY too tight at 0.7%.
In my experience, anything below 1% is unreliable at very short timeframes - at anything >= 5m - you'll want to work with 2-3% minimum.
The minimum asset tick size will also play a part in this - especially at values this low (you can't have a stop lower than the tick size - it'll always round up (the alternative would be an automatic exit at entry rate).
Your stop processing is then further constraint by the frequency of the bot checking on each pair (this is by default 5s - which is however a minimum. Ech additional open trade adds to this time - if you have open orders, the time will probably be lengthened (it's active calls against the exchange).
Essentially, this means that the price for each pair might be checked every 5 seconds - or more - so if we're at 20s - then the bot will be blind for all movements in between.
that's however not always relevant - as on this pair - 1 order of 1000$ can move price by several ticks - so even one second can make a difference - which is why i don't think a stoploss of <1.5-2% is realistic on such low-volume/value pairs
That particular pair also seems to have a fairly light orderbook (an order of a few $ can push price by mutiple orderbook steps - this is also something that's considered for market orders).
In summary: a stop will try to protect your loss - but there's no guarantee that it fills (if it's a limit order) - or at what price it fills (if it's a stop order).
-
you can use
/status
to get all open trades. -
looks correct - it's a trailing stop - it started trailing - hence the "stop" price is above (or in case of a short below) the entry price (the order also exited at a win).
With these trailing settings though - you'll have most trades exit at 0.01% profit (so nothing) - as a move of 0.01% to the downside from it's high will trigger stop.
Stoploss on exchange in such a situations will fail probably 50% of the time (fail to be placed as "current price" is below the expected trigger price, resulting in an emergency exit). -
use the
check_*_timeout()
helpers -
no. Orders not opened by freqtrade will not be considered. Also for futures, we assume that freqtrade "owns" the whole (sub-)account - so manually opening and closing orders nearby can mess with some calculations (mainly for stake size) - and should be considered a non-supported setup.
edit i assume bp assumes to [Basis point](https://www.investopedia.com/ask/answers/what-basis-point-bps/#:~:text=a%20financial%20instrument.-,One%20basis%20point%20is%20equivalent%20to%200.01%25%20(1%2F100th,basis%20points%20number%20by%20100.) - which is 0.01% - and would align with your settings.
from freqtrade.
Thanks for the detailed comments! @xmatthias @froggleston . Let me check the documentation again! I am still confused about the prices of some stop-loss orders.
Also, is there any relevant configuration that can make the open rate in telegram display more decimal point precision? For some trading pairs, the decimal does not seem to be sufficient. For example,
✓ Binance (dry): New Trade filled (#4398)
Pair: 1000PEPE/USDT:USDT
Candle OHLC: 0.0072913, 0.007325, 0.0072744, 0.0073153
Amount: 226035
Direction: Short (5x)
Open Rate: 0.007 USDT
Total: 331.752 USDT / 331.405 USD
And, yes, bp is basis point, 1 bp = 0.01%, 20 bps = 0.2%.
In the process of optimizing some hyperparameters, the decimal point precision control method is usually used. I would like to ask if there are some control methods similar to step size, such as stoploss = DecimalParameter(0.01, 0.05, step=0.0020)
and it will enumerate something like 0.0100, 0.0120, 0.0140 ... 0.0480, 0.0500
. In this way, the step size is 20bps for the stoploss optimization. Below is the standard optimization parameter definition in the documentation.
class MyAwesomeStrategy(IStrategy):
buy_adx = DecimalParameter(20, 40, decimals=1, default=30.1, space="buy")
buy_rsi = IntParameter(20, 40, default=30, space="buy")
buy_adx_enabled = BooleanParameter(default=True, space="buy")
buy_rsi_enabled = CategoricalParameter([True, False], default=False, space="buy")
buy_trigger = CategoricalParameter(["bb_lower", "macd_cross_signal"], default="bb_lower", space="buy")
from freqtrade.
In the process of optimizing some hyperparameters, the decimal point precision control method is usually used. I would like to ask if there are some control methods similar to step size
you can implement this logic quite easily by doing the math in the strategy.
Also, is there any relevant configuration that can make the open rate in telegram display more decimal point precision? For some trading pairs, the decimal does not seem to be sufficient.
No - shown decimals are taken from the price precision given for each pair - or in case of quote currency values - from static values defined for that asset (3 decimals for USDT, 8 for BTC, ...).
from freqtrade.
Related Issues (20)
- Put /SL TP with price HOT 2
- Issue with partial exits the coin amount not same as requested by the Strat. HOT 16
- How can i attach extra data on data-downloading? HOT 1
- Difference in adjustment return values HOT 2
- How to handle LSTM sliding window prediction in FreqAI backtest HOT 3
- How to Access dataframe_train in predict Without Modifying Original freqtrade Code? HOT 1
- ccxt.OperationFailed not handled properly HOT 1
- Add support for Krakenfutures or at least Kraken Spot Margin HOT 2
- Discussion: Multiple entry or exit orders strategy management stategy interface HOT 2
- FreqAI is dropping almost 100% of my datapoints at feature_engineering_standard HOT 7
- CoinGecko rate limit on fiat convert HOT 4
- AttributeError: 'Series' object has no attribute 'open' HOT 5
- ValueError: 'C' is not a valid CandleType HOT 2
- include "api_server" in command line option HOT 1
- Position stacking in live/dry mode - implementation HOT 2
- CCXT Websocket Integration HOT 10
- related parameters for hyper opt HOT 4
- How to avoid connection to exchange HOT 1
- dataframe['volume'] is 0, can't seem to call upon talib volume? freqtrade volume need to access. HOT 1
- USD/EUR Fiat convert not working on Telegram, showing 0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freqtrade.