sql-synergy
Version:
Synergy Wave TA
21 lines (20 loc) • 817 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Step5N = void 0;
const NeutralizeIndicators_1 = require("./NeutralizeIndicators");
const IConstants_1 = require("./IConstants");
const Step5_1 = require("./Step5");
class Step5N extends NeutralizeIndicators_1.NeutralizeIndicators {
constructor(oMSQuote, oPC, oIC, nK = 10, nD = 3, nMA = 10) {
super(oMSQuote, oPC);
try {
this.oIndicatorChart = new Step5_1.Step5(oIC, nK, nD, nMA);
if (oIC.getPeriod() < IConstants_1.IConstants.MONTHLY) // 3MI cannot be neutralized
this.oBiggerIndicatorChart = new Step5_1.Step5(oMSQuote.getData(oIC.getPeriod() + 1), nK, nD, nMA);
}
catch (err) {
console.error(err);
}
}
}
exports.Step5N = Step5N;