import * as tslib_1 from "tslib";
import { IgrStrategyBasedIndicator } from "./igr-strategy-based-indicator";
import { CommodityChannelIndexIndicator } from "./CommodityChannelIndexIndicator";
/**
 * Represents a IgxDataChartComponent Commodity Channel Index indicator series.
 * Default required members: High, Low, Close
*/
var IgrCommodityChannelIndexIndicator = /** @class */ (function (_super) {
    tslib_1.__extends(IgrCommodityChannelIndexIndicator, _super);
    function IgrCommodityChannelIndexIndicator(props) {
        return _super.call(this, props) || this;
    }
    IgrCommodityChannelIndexIndicator.prototype.createImplementation = function () {
        return new CommodityChannelIndexIndicator();
    };
    Object.defineProperty(IgrCommodityChannelIndexIndicator.prototype, "i", {
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgrCommodityChannelIndexIndicator.prototype, "period", {
        /**
         * Gets or sets the moving average period for the current CCISeries object.
         * The typical, and initial, value for CCI periods is 20.
        */
        get: function () {
            return this.i.ql;
        },
        set: function (v) {
            this.i.ql = +v;
        },
        enumerable: true,
        configurable: true
    });
    return IgrCommodityChannelIndexIndicator;
}(IgrStrategyBasedIndicator));
export { IgrCommodityChannelIndexIndicator };
