-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Built-in variables to fetch/filter available sources (Exchange, Type, Currency) #321
Comments
maybe something like this? script variables:
or just have a filter tab where you can select which sources similar to how the sources search works |
Thats a great starter! I even didn't think about how to actually implement it. Following is a brain dump of my wet dreams. Setting the stage
Example json for overridesCould easily be extended to e.g. override chart settings amongst other stuff you might want developers allow to hook into by code. {
"Settings_Override": {
"Exchange_Overrides": {
"enabledExchange": [
"ALL || Default || Array (e.g. ['Binance_US', 'ANY', 'Other']"
],
"disabledExchange": "ALL || Default || Array (e.g. ['Binance_US', 'ANY', 'Other'])"
},
"AssetType_Overrides": {
"Futures": false,
"Perpetual": true,
"Spot": true
},
"Symbols": {
"baseSymbol": "BTC",
"quoteSymbol": [
"ALL || Array (e.g. 'USD', 'USDT', 'USDC')"
]
},
"baseCurrency": {
"enabled": true,
"quoteSymbol": "USD"
}
}
} This way, its easy to refer to Footnotes
|
Not like this because someone might want to filter on multiple exchange, or combine multiple filters (type + exchange) What you want is a From there, in the script transpilation parse these function calls and store the filters somewhere then we are going to need a second step to the transpilation dedicated to transpile these calls into actual markets data path (bars.renderer.sources[...]) by default should result in the average of the ohlc based on the given filters
How useful would that be 😄 |
draw close of spot markets available on the pane
draw candlestick of spot markets available
cvd per type
draw heikinashi of BITFINEX spot markets only
|
@nl8-gh the feature is available on https://tucsky.github.io/aggr for testing |
Just a reminder that when, or if, this is approved, documentation will need to be updated here: https://github.com/Tucsky/aggr/wiki/Introduction-to-scripting |
Ask | Request:
Seeking built-in variable(s) to get / filter sources from within an indicator --> 'Exchange(s)' | 'Type' | 'Currency'
Context:
For custom indicators I want to do some math on an e.g. USD Perp for BTC on every supported Exchange.
Rather adding them manually / hardcode related sources, a built-in var allows better flexibillity & more.
Benefit:
a) Kinda "optimistic" & unified User eXperience since less skilled noobs / users often aren't aware that they need to tweak things (especially on older scripts they might have found).
b) developers can provide better defaults (or even, if supported, an option in settings to either use a custom selection only or "all available" (Exchanges | Types | Currencies)
The text was updated successfully, but these errors were encountered: