The resource loading... loading...

How to get the current BOLL up-line, mid-line, down-line?

Author: ximing283, Created: 2016-07-09 09:16:43, Updated:

The question! It is suggested that the function in the API documentation should be given an instance code, which is written in the API like this

BOLL ((data, period, multiplier), Braille line pointer, default parameter is ((20, 2)) Returns a two-dimensional array [upline, midline, downline]

I can't see the code in the API documentation! Can you just put it in and use it, otherwise this tool is not for many newbies!

while(true){ BOLL(20,2); }


Related

More

ximing283So upLine is online? How does it come out as a bunch of arrays?

Inventors quantify - small dreamsBOLL ((data, period, multiplier), Braille line pointer, default parameter is ((20, 2)) Returns a two-dimensional array [upline, midline, downline] 1, you see the API documentation above. The function is called BOLL, and the first parameter is the array of data, which refers to the GetRecords function that returns the K-line data, the periodicity of the K-line data (i.e. the length: records.length) cannot be less than the second parameter of the BOLL function, the array of periodicity. If BOLL is used without specifying the second and third parameters, then the BOLL function defaults to 20 for the second and 2 for the third. 3, the return value of the BOLL function is a two-dimensional array. It contains three one-dimensional arrays: up, mid, and down. Code example: var records = exchange.GetRecords (();// get the K line while ((!records.registrations.length < 20){// Retrieve K-line data if the records (K-line data) are null or K-line data are less than 20 in length records = exchange.GetRecords (); Sleep ((500);// Buffer 500 milliseconds each time I'm not sure. var bollValue = TA.BOLL ((records 20, 2);// Calculated using the BOLL function The number of indicator values based on records ((K line data) var upLine = bollValue[0];// upLine is a string of data that is a one-dimensional array, i.e. the indicator is online var midLine = bollValue[1];// midLine is a one-dimensional array representing the midline var downLine = bollValue[2];//..... is the value of the You can print it out with the Log function. Other indicator functions are used similarly, specifically to read document content.

Don.Note that this is a two-dimensional array, so for beginners, don't rush into it.

Inventors quantify - small dreamsProperly, the array is the line. The array is the y-axis value of a string of lines. The x-axis value is the corresponding k-axis period.