Bandwidth Implemented

This commit is contained in:
Luis Fernando Molina committed 2019-03-09 19:53:26 +01:00
1 parent 3d75eb249a
commit 5d75b31c97
1 file changed
+6 -2
+6 -2
View File
@@ -545,11 +545,14 @@
movingAverage = movingAverage + value;
movingAverage = movingAverage / (numberOfPreviousPeriods + 1);
let bandwidth = (upperBB - lowerBB) / band.movingAverage;
let percentageBandwidth = {
begin: candles[i].begin,
end: candles[i].end,
value: value,
movingAverage: movingAverage
movingAverage: movingAverage,
bandwidth: bandwidth
};
/* Will only add to the array the pBs of the current day */
@@ -656,7 +659,8 @@
pB.begin + "," +
pB.end + "," +
pB.value + "," +
pB.movingAverage + "]";
pB.movingAverage + "," +
pB.bandwidth + "]";
if (separator === "") { separator = ","; }