The resource loading... loading...

MacD, please look at this.

Author: The bride too., Created: 2017-03-30 18:02:26, Updated: 2019-07-31 18:36:24

There is a problem with macd requesting this function, is it wrong?

function Getmacd(records,i) { var p = 0; var macd = TA.MACD(records, 12, 26, 9); var dif = macd[0]; var dea = macd[1]; var column = macd[2]; p = column[column.length - i -1];
return p; }

The value gap is huge compared to the stock exchange. Is the inventor having a problem with quantifying the platform?


More

JThe calculation is correct, where i refers to the hist value of the previous i macd. i is the latest macd data at 0.

Inventors quantify - small dreamsYes, the talib indicator library used by BotVS system, the calculation column is slightly different, not multiplying by 2 is the original algorithm, but later it seems to make this column more obvious by multiplying by 2. dif and dea should be the same.

The bride too.Thanks, I figured it out. It was because of the exchange rate, and besides, the botvs are twice as bad as the trades, the botvs aren't 2 times.