Created
January 12, 2024 00:58
-
-
Save jmreicha/bd1c8c726b91177cd0680df743f5df25 to your computer and use it in GitHub Desktop.
ohlcv-candles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"type": "dashboard" | |
} | |
] | |
}, | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 4, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "postgres", | |
"uid": "P2596F1C8E12435D2" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "auto", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 2, | |
"options": { | |
"candleStyle": "candles", | |
"colorStrategy": "open-close", | |
"colors": { | |
"down": "red", | |
"up": "green" | |
}, | |
"includeAllFields": true, | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"mode": "candles+volume" | |
}, | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "postgres", | |
"uid": "P2596F1C8E12435D2" | |
}, | |
"editorMode": "code", | |
"format": "table", | |
"rawQuery": true, | |
"rawSql": "select time, open, high, low, close, volume from '${ticker}' order by time desc limit 1000;", | |
"refId": "A", | |
"sql": { | |
"columns": [ | |
{ | |
"parameters": [], | |
"type": "function" | |
} | |
], | |
"groupBy": [ | |
{ | |
"property": { | |
"type": "string" | |
}, | |
"type": "groupBy" | |
} | |
], | |
"limit": 50 | |
} | |
} | |
], | |
"title": "Candles + Bbands", | |
"type": "candlestick" | |
} | |
], | |
"refresh": false, | |
"schemaVersion": 38, | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"current": { | |
"selected": false, | |
"text": "SPX", | |
"value": "SPX" | |
}, | |
"datasource": { | |
"type": "postgres", | |
"uid": "P2596F1C8E12435D2" | |
}, | |
"definition": "", | |
"hide": 0, | |
"includeAll": false, | |
"label": "Ticker", | |
"multi": false, | |
"name": "ticker", | |
"options": [], | |
"query": "", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "2024-01-04T02:04:00.000Z", | |
"to": "2024-01-05T02:56:00.000Z" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "OHLCV Candles", | |
"uid": "a307a165-49e2-4d5e-b2de-1be0f6bde90f", | |
"version": 5, | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment