Comments (5)
Well i have no clue what the pinescript function actually tries to do.
You can however plot indicators just fine.
for booleans which go onto the main chart, i usually recommend to pick "one" line - and assign it something like this:
dataframe.loc[dataframe['bool'], 'bool_indicator'] = dataframe['close']
You can then use the type "scatter" in freqUI to plot these values - which will show up at the line. (obviously, you can also use open/high/low - or move it up/down a bit to make it more visible - that's then up to you / experimentation on how it looks the way you desire.
from freqtrade.
@xmatthias the question was mostly in manipulating object's rendering positions and types \ modes:
location=location.belowbar
- renders circle shape below bar (as entry and exit signals do with triangles)- also, I'd like plot some other shapes like rectangles and so on.
In the ~/freqtrade/plot/plotting.py
I've found limited support for some Bar & Scatter objects. But as it's considered as legacy. may be in frequi the support was extended. So I've not found any code examples of how the config for that should look.
from freqtrade.
Everything freqUI can render can be configured as part of the plot configurator.
If it ain't there - you can't do it. Plot-config is output of that configurator for "ease of use" in a strategy - but the UI will guide you through it.
Support has been extended for some common schemes (like area plots).
That said - the first point - you can absolutely do with the above described method. While it's a combination of dataframe and plotting - it's the way to go.
You can't plot other shapes - but i also don't really see the usecaes if i'm honest - so maybe you can describe why you think you need to plot random symbols on a chart? (most likely, there's a different / better way to do it).
from freqtrade.
@xmatthias I'd like to render on the charts smth. like that (it can be done with horizontal lines only, but if there are a lot of them - it becomes messy, & also I'd like to see block (rectangle) intersections):
from freqtrade.
except for the labels - you can accomplish that figure using the method described above.
In essence, it's simply 2 indicators (columns in the dataframe) - one for the upper, one for the lower line of the rectangle.
When the rectangle starts/ends - their values become NaN in the dataframe (essentially, not assigned).
You then connect them as Area in the plot configurator - and it'll become a rectangle automatically (obviously assuming that the numbers you assigned form a straight line).
Labels / text won't be possible - and i also don't think that it's going to be something that we'll be adding to plots - as that tends to make plots very messy rather quickly - and i'd not know how to generalize this in a way to make it useful for more than 1 dedicated strategy.
from freqtrade.
Related Issues (20)
- TEMA200 to long? HOT 10
- Custom Telegram message from Strategy HOT 1
- ccxt >= 4.3.21 is broken HOT 1
- FreqAI: model not retraining itself. HOT 3
- ccxt.base.errors.RequestTimeout HOT 1
- `trade()`: truncate data at "current date" to avoid lookahead bias in callbacks HOT 3
- (backtesting)Sample Strategy not work for cli, but works for web server interface HOT 1
- Add Python version 3.12 in the setup file HOT 1
- support ipv6 for api_server.listen_ip_address HOT 2
- ERROR - No pair in whitelist. HOT 5
- Mutually exclusive execution of populate_entry_trend and populate_exit_trend HOT 1
- [WIP] Memory Leak when using MarketCapPairList HOT 6
- config futures trading, using spot data in the strategy,No data found for (BTC/USDT:USDT, 5m, spot) in backtesting HOT 1
- how to express the crossing of the MA5 over the MA10 twice HOT 7
- Re-asigning values to populate indicators dataframe from custom exit HOT 1
- Two strategies on one account HOT 2
- New actions for FreqAI's RL environment HOT 2
- freqtrade reports wrong time on telegram HOT 1
- Hope to support spot data indicators for futures trading @Binance HOT 10
- FreqAI installation issue 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 freqtrade.