當前位置: 首頁>>代碼示例>>Java>>正文


Java OptInputParameterInfo類代碼示例

本文整理匯總了Java中com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo的典型用法代碼示例。如果您正苦於以下問題:Java OptInputParameterInfo類的具體用法?Java OptInputParameterInfo怎麽用?Java OptInputParameterInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OptInputParameterInfo類屬於com.tictactec.ta.lib.meta.annotation包,在下文中一共展示了OptInputParameterInfo類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getMetaData

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
/**
 * This method returns the underlying CoreMetaData class.
 * 
 * @return the underlying CoreMetaData class
 * @throws NoSuchMethodException
 * @throws IllegalArgumentException
 */
public CoreMetaData getMetaData() throws NoSuchMethodException, IllegalArgumentException {
    if (this.calc!=null) return this.calc;
    this.calc = CoreMetaData.getInstance(func);
    FuncInfo finfo = calc.getFuncInfo();
    if (args.length>finfo.nbOptInput()) throw new IllegalArgumentException(); //TODO: message
    for (int i=0; i<args.length; i++) {
        OptInputParameterInfo ppinfo = calc.getOptInputParameterInfo(i);
        if (ppinfo.dataSet().isAssignableFrom(IntegerList.class) || ppinfo.dataSet().isAssignableFrom(IntegerRange.class)) {
            calc.setOptInputParamInteger(i, args[i]);
        } else if (ppinfo.dataSet().isAssignableFrom(RealList.class) || ppinfo.dataSet().isAssignableFrom(RealRange.class)) {
            calc.setOptInputParamReal(i, args[i]);
        } else {
            throw new ClassCastException(); //TODO: message
        }
    }
    return this.calc;
}
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:25,代碼來源:SimpleHelper.java

示例2: setOptInputParamInteger

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
/**
 * Assigns an <b>int</b> value to an optional input parameter
 * which is expected to be assignment compatible to <b>int</b>.
 * 
 * @param paramIndex is the n-th optional input parameter
 * @param value is the <b>int</b> value
 * @throws IllegalArgumentException
 */
public void setOptInputParamInteger(final int paramIndex, final int value) throws IllegalArgumentException {
    OptInputParameterInfo param = getOptInputParameterInfo(paramIndex);
    if (param==null) throw new InternalError(CONTACT_DEVELOPERS);
    if (param.type()==OptInputParameterType.TA_OptInput_IntegerList) {
        IntegerList list = getOptInputIntegerList(paramIndex);
        for (int entry : list.value()) {
            if (value==entry) {
                if (callOptInputParams==null) callOptInputParams = new Object[getFuncInfo().nbOptInput()];
                callOptInputParams[paramIndex] = value;
                return;
            }
        }
    } else if (param.type()==OptInputParameterType.TA_OptInput_IntegerRange) {
        IntegerRange range = getOptInputIntegerRange(paramIndex);
        if ((value >= range.min())&&(value <= range.max())) {
            if (callOptInputParams==null) callOptInputParams = new Object[getFuncInfo().nbOptInput()];
            callOptInputParams[paramIndex] = value;
            return;
        }
    } 
    throw new InternalError(CONTACT_DEVELOPERS);
}
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:31,代碼來源:CoreMetaData.java

示例3: setOptInputParamReal

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
/**
 * Assigns an <b>double</b> value to an optional input parameter
 * which is expected to be assignment compatible to <b>double</b>.
 * 
 * @param paramIndex is the n-th optional input parameter
 * @param value is the <b>double</b> value
 * @throws IllegalArgumentException
 */
public void setOptInputParamReal(final int paramIndex, final double value) throws IllegalArgumentException {
    OptInputParameterInfo param = getOptInputParameterInfo(paramIndex);
    if (param.type()==OptInputParameterType.TA_OptInput_RealList) {
        RealList list = getOptInputRealList(paramIndex);
        for (double entry : list.value()) {
            if (value==entry) {
                if (callOptInputParams==null) callOptInputParams = new Object[getFuncInfo().nbOptInput()];
                callOptInputParams[paramIndex] = value;
                return;
            }
        }
    } else if (param.type()==OptInputParameterType.TA_OptInput_RealRange) {
        RealRange range = getOptInputRealRange(paramIndex);
        if ((value >= range.min())&&(value <= range.max())) {
            if (callOptInputParams==null) callOptInputParams = new Object[getFuncInfo().nbOptInput()];
            callOptInputParams[paramIndex] = value;
            return;
        }
    }
    throw new InternalError(CONTACT_DEVELOPERS);
}
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:30,代碼來源:CoreMetaData.java

示例4: taGetInputParameterInfo

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
RetCode taGetInputParameterInfo(final int paramIndex, OptInputParameterInfo retOptInputParameterInfo) {
    try {
        retOptInputParameterInfo = super.getOptInputParameterInfo(paramIndex);
        return RetCode.Success;
    } catch (IllegalArgumentException e) {
        return RetCode.BadParam;
    }
}
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:9,代碼來源:CoreMetaDataCompatibility.java

示例5: adOsc

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "ADOSC",
        group = "Volume Indicators",
        flags = 0,
        nbInput    = 1,
        nbOptInput = 2,
        nbOutput   = 1
)
public RetCode adOsc(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHLCV",
                flags     = 30,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            double inClose [],
            double inVolume [],
            @OptInputParameterInfo(
                paramName    = "optInFastPeriod",
                displayName  = "Fast Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInFastPeriod",
                    defaultValue = 3,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInFastPeriod,
            @OptInputParameterInfo(
                paramName    = "optInSlowPeriod",
                displayName  = "Slow Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInSlowPeriod",
                    defaultValue = 10,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInSlowPeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.adOsc (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        inClose ,
        inVolume ,
        optInFastPeriod,
        optInSlowPeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:77,代碼來源:CoreAnnotated.java

示例6: adx

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "ADX",
        group = "Momentum Indicators",
        flags = 134217728,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode adx(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHLC",
                flags     = 14,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 14,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.adx (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        inClose ,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:57,代碼來源:CoreAnnotated.java

示例7: adxr

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "ADXR",
        group = "Momentum Indicators",
        flags = 134217728,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode adxr(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHLC",
                flags     = 14,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 14,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.adxr (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        inClose ,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:57,代碼來源:CoreAnnotated.java

示例8: aroon

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "AROON",
        group = "Momentum Indicators",
        flags = 0,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 2
)
public RetCode aroon(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHL",
                flags     = 6,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 14,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outAroonDown",
                flags     = 4,
                type = OutputParameterType.TA_Output_Real
            )
            double outAroonDown[],
            @OutputParameterInfo(
                paramName = "outAroonUp",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outAroonUp[]
) {
    return super.aroon (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outAroonDown,
        outAroonUp
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:62,代碼來源:CoreAnnotated.java

示例9: aroonOsc

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "AROONOSC",
        group = "Momentum Indicators",
        flags = 0,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode aroonOsc(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHL",
                flags     = 6,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 14,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.aroonOsc (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:55,代碼來源:CoreAnnotated.java

示例10: atr

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "ATR",
        group = "Volatility Indicators",
        flags = 134217728,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode atr(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHLC",
                flags     = 14,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 14,
                    min          = 1,
                    max          = 100000,
                    suggested_start     = 1,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.atr (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        inClose ,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:57,代碼來源:CoreAnnotated.java

示例11: beta

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "BETA",
        group = "Statistic Functions",
        flags = 0,
        nbInput    = 2,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode beta(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inReal0",
                flags     = 0,
                type = InputParameterType.TA_Input_Real
            )
            double inReal0[],
            @InputParameterInfo(
                paramName = "inReal1",
                flags     = 0,
                type = InputParameterType.TA_Input_Real
            )
            double inReal1[],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 5,
                    min          = 1,
                    max          = 100000,
                    suggested_start     = 1,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.beta (
        startIdx,
        endIdx,
        inReal0,
        inReal1,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:60,代碼來源:CoreAnnotated.java

示例12: cci

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "CCI",
        group = "Momentum Indicators",
        flags = 0,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cci(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceHLC",
                flags     = 14,
                type = InputParameterType.TA_Input_Price
            )
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInTimePeriod",
                displayName  = "Time Period",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_IntegerRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class
            )
            @IntegerRange(
                    paramName    = "optInTimePeriod",
                    defaultValue = 14,
                    min          = 2,
                    max          = 100000,
                    suggested_start     = 4,
                    suggested_end       = 200,
                    suggested_increment = 1
            )
            int optInTimePeriod,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outReal",
                flags     = 1,
                type = OutputParameterType.TA_Output_Real
            )
            double outReal[]
) {
    return super.cci (
        startIdx,
        endIdx,
        inHigh ,
        inLow ,
        inClose ,
        optInTimePeriod,
        outBegIdx,
        outNBElement,
        outReal
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:57,代碼來源:CoreAnnotated.java

示例13: cdlAbandonedBaby

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "CDLABANDONEDBABY",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlAbandonedBaby(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlAbandonedBaby (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:61,代碼來源:CoreAnnotated.java

示例14: cdlDarkCloudCover

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "CDLDARKCLOUDCOVER",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlDarkCloudCover(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.50000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlDarkCloudCover (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:61,代碼來源:CoreAnnotated.java

示例15: cdlEveningDojiStar

import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; //導入依賴的package包/類
@FuncInfo(
        name  = "CDLEVENINGDOJISTAR",
        group = "Pattern Recognition",
        flags = 268435456,
        nbInput    = 1,
        nbOptInput = 1,
        nbOutput   = 1
)
public RetCode cdlEveningDojiStar(
            int startIdx,
            int endIdx,
            @InputParameterInfo(
                paramName = "inPriceOHLC",
                flags     = 15,
                type = InputParameterType.TA_Input_Price
            )
            double inOpen [],
            double inHigh [],
            double inLow [],
            double inClose [],
            @OptInputParameterInfo(
                paramName    = "optInPenetration",
                displayName  = "Penetration",
                flags        = 0,
                type    = OptInputParameterType.TA_OptInput_RealRange,
                dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class
            )
            @RealRange(
                    paramName    = "optInPenetration",
                    defaultValue = 0.30000,
                    min          = 0.00000,
                    max          = 30000000000000002000000000000000000000.00000,
                    precision    = 0,
                    suggested_start     = 0.00000,
                    suggested_end       = 0.00000,
                    suggested_increment = 0.00000
            )
            double optInPenetration,
            MInteger     outBegIdx,
            MInteger     outNBElement,
            @OutputParameterInfo(
                paramName = "outInteger",
                flags     = 1,
                type = OutputParameterType.TA_Output_Integer
            )
            int outInteger[]

) {
    return super.cdlEveningDojiStar (
        startIdx,
        endIdx,
        inOpen ,
        inHigh ,
        inLow ,
        inClose ,
        optInPenetration,
        outBegIdx,
        outNBElement,
        outInteger
); }
 
開發者ID:BYVoid,項目名稱:TA-Lib,代碼行數:61,代碼來源:CoreAnnotated.java


注:本文中的com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。