Comments (8)
Which version of Jesse are you using?
Run jesse --version
from jesse.
I had similar problems too with charts in a previous version(s) but I tried now with version 0.18.2 and no more problems in my test
from jesse.
Is this solved?
from jesse.
Can confirm.
jesse, version 0.20.9
Also found a confirmation on Discord.
Can confirm that seems to be linked to use of self.liquidate()
from jesse.
Seems to be related to line 85 of charts.py. Suspect something to do with the last trade being open as the timestamp that is causing the key error is not in price_dict.
from jesse.
I want to include the last trade in the chart too. Do you guys have a sample strategy that produces this error so I can reproduce the issue?
from jesse.
I want to include the last trade in the chart too. Do you guys have a sample strategy that produces this error so I can reproduce the issue?
Great. My fix never really got to the source of the issue, just caught it before it caused an exception.
It's odd though, I'm having time reproducing the issue now. I'll keep trying
from jesse.
Ok, got it. Routes is:
# Make sure to read the docs about routes if you haven't already:
# https://docs.jesse.trade/docs/routes.html
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
from jesse.utils import anchor_timeframe
# trading routes
routes = [
('Binance Futures', 'BTC-USDT', '1h', 'HighPass'),
]
# in case your strategy requires extra candles, timeframes, ...
extra_candles = [
('Binance Futures', 'BTC-USDT', anchor_timeframe('1h')),
]
Check the files for strategy init and Custom Indicator.
Bactest parameters below.
$jesse backtest '2021-02-01' '2021-03-27' --chart
from jesse.
Related Issues (20)
- File "jesse_live\exchanges\LiveExchange.py", line 367, in jesse_live.exchanges.LiveExchange.LiveExchange._connect_ws._on_message HOT 15
- Precision Bug HOT 3
- Supporting Multiple Symbols For a Strategy Backtest HOT 1
- download link on the website are broken HOT 1
- install error For countries that do not meet the network conditions HOT 1
- [Live Mode] Session terminated as the result of an uncaught exception HOT 2
- After a position opened using different time window in order to check situation HOT 2
- There is no bitget example HOT 1
- Kraken data HOT 1
- Integrating Forex data from a Oanda API HOT 1
- linux/arm64 docker image HOT 4
- Live-trading plugin cannot be run on ARM platform HOT 1
- fee = config['env']['exchanges'][self.exchange]['fee']. KeyError: None HOT 2
- Add tradingview-webhook HOT 2
- get_cadles for > 1m routes does not work due to some legacy code HOT 1
- when running paper-trade mode, DELETE requests lead to unhandled exception (err 500) HOT 2
- wrong period starts for 45m candles in PAPERTRADE mode HOT 11
- Option Support HOT 2
- circular dependency with python 3.11 HOT 3
- Bug - link not working HOT 4
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 jesse.