The resource loading... loading...

请问talib.STOCHRSI如何才能取得和bitcoinwisdom一样的值

Author: dota22abc, Created: 2016-06-02 15:07:44, Updated:

function onTick(exchange) {
    var records = exchange.GetRecords();
    var sr = talib.STOCHRSI(records, 14, 14, 3, 3);
    var nowStochK = sr[0][records.length - 1];
    var nowStochD = sr[1][records.length - 1];
    Log(nowStochK + " "+ nowStochD);
}

Platform: Graph of the 1h token Bitcoinwisdom 2016.6.2 11:00 the k line corresponds to stochrsi 83.85 ma68.3 The program also sets the 1h cycle, and the value that is printed is2016-06-02 10:59:55 信息 100 57.53907559474309


More

Inventors quantify - small dreamsI've finally figured it out. https://www.botvs.com/bbs-topic/392

Inventors quantify - small dreamsIs the onTick function retested? On which platform is the onTick function running? First records the data to be consistent.

Inventors quantify - small dreamshttps://www.botvs.com/bbs-topic/392 I didn't understand it before, now I do.

dota22abcI'm going to try the method you said.

Inventors quantify - small dreamsI didn't find this indicator on the bitcoinwisdom website, which is that you want to see if the K-line data on bitcoinwisdom is consistent with the K-line data you measured back in BotVS, otherwise the data at the beginning is not consistent in length and will cause numerical deviations, you can test for example the mean line, you collect 50K lines and calculate the mean line value at one moment, you collect 100K lines and calculate the mean line value at the same moment, and then compare it.

dota22abcPlease ask `bitcoinwisdom`'s `stochrsi` parameter is 14 14 3 3 we `talib.STOCHRSI ((records, 14, 14, 3, 3); ` is this equivalent? and return the result `sr[0] sr[1] ` which is stochrsi and which is ma?

dota22abcis retested. records data match.