Skip to content

Commit 3ce640d

Browse files
committed
style(dashboard):added currencypair value to the OHCL chart
1 parent 6f439b0 commit 3ce640d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

default/data/ui/views/overview_plotly_charts.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
<search>
88
<query>| gentimes start=-30 increment=6h
99
| fields starttime
10-
| eval _time=strftime(starttime,"%Y-%m-%dT%H:%M:%S")
10+
| eval _time=strftime(starttime,"%Y-%m-%dT%H:%M:%S")
1111
| eval open=(random() %50) + 1
1212
| eval sign=if((random() %2)==0,"-","+")
1313
| eval close=(((random() %20)/100)*open)
1414
| eval close=sign+close
1515
| eval close=round(close+open,1)
1616
| eval high=if(open &gt; close,(open*.1)+open,(close*.1)+close)
1717
| eval low=if(open &lt; close,open-(open*.1),close-(close*.1))
18-
| sort starttime
18+
| eval currencypair="GBP/USD"
19+
| sort starttime
1920
| fields - sign, starttime
20-
| trendline ema8(close) AS 8PointEMA ema20(close) AS 20PointEMA
21+
| trendline ema8(close) AS 8PointEMA ema20(close) AS 20PointEMA
2122
| reverse</query>
2223
<earliest>-24h@h</earliest>
2324
<latest>now</latest>
@@ -59,11 +60,11 @@
5960
<search>
6061
<query>| gentimes start=-30 increment=6h
6162
| fields starttime
62-
| eval _time=strftime(starttime,"%Y-%m-%dT%H:%M:%S")
63-
| eval line1=(random() %50) + 1
64-
| eval line2=(random() %50) + 1
65-
| eval sign=if((random() %2)==0,"-","+")
66-
| eval scatter=(((random() %20)/100)*line1)
63+
| eval _time=strftime(starttime,"%Y-%m-%dT%H:%M:%S")
64+
| eval line1=(random() %50) + 1
65+
| eval line2=(random() %50) + 1
66+
| eval sign=if((random() %2)==0,"-","+")
67+
| eval scatter=(((random() %20)/100)*line1)
6768
| eval scatter=sign.scatter
6869
| fields - sign
6970
| table _time, scatter, line1, line2</query>

0 commit comments

Comments
 (0)