forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 0
Feature: Visualize Indicators
phong edited this page Mar 12, 2018
·
19 revisions
In the Vue frontend application, there is a chart data model at:
Root > App > Backtester > Result > ResultSummary > Chart
The chart object has a data property inside of it, which looks like this:
<chart>.data:{
candles:{},
indicatorResults:{},
report:{},
roundtrips:{},
trades:{}
}The indicatorResults object contains the following structure:
{
main:[{...Object dataset}], // contains indicators which are drawn on the main chart
subCharts:[{...Object subChart}] // contains sub charts which are drawn below in lister order
}
Object subChart:{
title:"Stoch RSI",
datasets:[{...Object dataset}]
}
Object dataset:{
type:"bars",
name:"histogram",
range:{},
colors:[],
data:[{...Object datapoint}]
}