The resource loading... loading...

为什么使用TA.BOLL返回的数据是一大堆null,求高手解答

Author: tomiezhang, Created: 2018-03-06 17:02:05, Updated:

It's written in a loop. var records = exchange.GetRecords ((Kzhouqi); if ((records && records.length > 20) { Var boll = TA.BOLL ((records, 20, 2)); Log ((boll[1]); I'm not sure.

Returns the value: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 11169.6295, 11169.244499999999, 11165.2815, 11158.54 199999999998...] This is the first time I've seen this in a while. If you want to get upline and downline, how do you write it?


Related

More

tomiezhangIt's been solved:)

Inventors quantify - small dreamsWell, the official QQ group can apply, groups 1, 2, 3 are now probably full of 4 groups.

tomiezhangI understand, thank you! Please use QQ group:)

Inventors quantify - small dreamsOh no, a=GetRecords ((PERIOD_M5))// get the 5 minute K line var boll = TA.BOLL(a) // Pass the K-line data into the indicator function Calculate the indicator, of course without specifying the indicator parameter, the default value is used, the Boll line up and down takes 2 standard deviations of the mean line (remember this) Boll This is the data for the Boll indicator. The only thing that is going to get me on track is: boll[0] // on track (on line) The last value of the indicator is: boll[0][boll[0].length - 1] // latest uplink, corresponding to the most recent K line

tomiezhangI'm going to ask you again, for example, if I want to get the BOLL trajectory value of a 5-minute line, is a=GetRecords ((PERIOD_M5)) and then TA.BOLL ((a[0][4]) like this?

Inventors quantify - small dreams^^, TA.BOLL is the return of three lines, i.e. three arrays. The first array is the upline, then the middle line, and finally the downline. The null in front is because it does not satisfy the indicator. The period of the parameters required is calculated invalid. When the period is satisfied, the indicator value is calculated, such as MA ((5) when the 4 roots beginning on the K line are all zeroes.