sql-synergy
Version:
Synergy Wave TA
22 lines (21 loc) • 891 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Step4N = void 0;
const NeutralizeIndicators_1 = require("./NeutralizeIndicators");
const Step4_1 = require("./Step4");
const IConstants_1 = require("./IConstants");
class Step4N extends NeutralizeIndicators_1.NeutralizeIndicators {
constructor(oMSQuote, oPC, oIC, nDays = 10) {
// this ( oMSQuote, oMSQuote.getData ( iIC ), nDays, i3P ) ;
super(oMSQuote, oPC);
try {
this.oIndicatorChart = new Step4_1.Step4(oIC, nDays);
if (oIC.getPeriod() < IConstants_1.IConstants.MONTHLY) // 3MI cannot be neutralized using the BiggerIndicator Chart
this.oBiggerIndicatorChart = new Step4_1.Step4(oMSQuote.getData(oIC.getPeriod() + 1), nDays);
}
catch (err) {
console.error(err);
}
}
}
exports.Step4N = Step4N;