📄 table_s.c
字号:
{ &TA_DEF_UI_Output_Real, NULL};static const TA_OptInputParameterInfo *TA_SMA_OptInputs[] ={ &TA_DEF_UI_TimePeriod_30_MINIMUM2, NULL};DEF_FUNCTION( SMA, /* name */ TA_GroupId_OverlapStudies, /* groupId */ "Simple Moving Average", /* hint */ "Sma", /* CamelCase name */ TA_FUNC_FLG_OVERLAP /* flags */ );/* SMA END *//* SQRT BEGIN */DEF_MATH_UNARY_OPERATOR( SQRT, "Vector Square Root", "Sqrt" )/* SQRT END *//* SUB BEGIN */DEF_MATH_BINARY_OPERATOR( SUB, "Vector Arithmetic Substraction", "Sub" )/* SUB END *//* SUM BEGIN */static const TA_InputParameterInfo *TA_SUM_Inputs[] ={ &TA_DEF_UI_Input_Real, NULL};static const TA_OutputParameterInfo *TA_SUM_Outputs[] ={ &TA_DEF_UI_Output_Real, NULL};static const TA_OptInputParameterInfo *TA_SUM_OptInputs[] ={ &TA_DEF_UI_TimePeriod_30_MINIMUM2, NULL};DEF_FUNCTION( SUM, /* name */ TA_GroupId_MathOperators, /* groupId */ "Summation", /* hint */ "Sum", /* CamelCase name */ 0 /* flags */ );/* SUM END *//* STDDEV BEGIN */static const TA_InputParameterInfo *TA_STDDEV_Inputs[] ={ &TA_DEF_UI_Input_Real, NULL};static const TA_OutputParameterInfo *TA_STDDEV_Outputs[] ={ &TA_DEF_UI_Output_Real, NULL};static const TA_OptInputParameterInfo *TA_STDDEV_OptInputs[] ={ &TA_DEF_UI_TimePeriod_5_MINIMUM2, &TA_DEF_UI_NbDeviation, NULL};DEF_FUNCTION( STDDEV, /* name */ TA_GroupId_Statistic, /* groupId */ "Standard Deviation", /* hint */ "StdDev", /* CamelCase name */ 0 /* flags */ );/* STDDEV END *//* STOCH BEGIN */static const TA_OptInputParameterInfo TA_DEF_UI_FastK_Period ={ TA_OptInput_IntegerRange, /* type */ "optInFastK_Period", /* paramName */ 0, /* flags */ "Fast-K Period", /* displayName */ (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ 5, /* defaultValue */ "Time period for building the Fast-K line", /* hint */ NULL /* CamelCase name */};static const TA_OptInputParameterInfo TA_DEF_UI_SlowK_Period ={ TA_OptInput_IntegerRange, /* type */ "optInSlowK_Period", /* paramName */ 0, /* flags */ "Slow-K Period", /* displayName */ (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ 3, /* defaultValue */ "Smoothing for making the Slow-K line. Usually set to 3", /* hint */ NULL /* CamelCase name */};static const TA_OptInputParameterInfo TA_DEF_UI_SlowD_Period ={ TA_OptInput_IntegerRange, /* type */ "optInSlowD_Period", /* paramName */ 0, /* flags */ "Slow-D Period", /* displayName */ (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ 3, /* defaultValue */ "Smoothing for making the Slow-D line", /* hint */ NULL /* CamelCase name */};const TA_OptInputParameterInfo TA_DEF_UI_SlowK_MAType ={ TA_OptInput_IntegerList, /* type */ "optInSlowK_MAType", /* paramName */ 0, /* flags */ "Slow-K MA", /* displayName */ (const void *)&TA_MA_TypeList, /* dataSet */ 0, /* defaultValue = simple average */ "Type of Moving Average for Slow-K", /* hint */ NULL /* CamelCase name */};const TA_OptInputParameterInfo TA_DEF_UI_SlowD_MAType ={ TA_OptInput_IntegerList, /* type */ "optInSlowD_MAType", /* paramName */ 0, /* flags */ "Slow-D MA", /* displayName */ (const void *)&TA_MA_TypeList, /* dataSet */ 0, /* defaultValue = simple average */ "Type of Moving Average for Slow-D", /* hint */ NULL /* CamelCase name */};const TA_OutputParameterInfo TA_DEF_UI_Output_SlowK = { TA_Output_Real, "outSlowK", TA_OUT_DASH_LINE };const TA_OutputParameterInfo TA_DEF_UI_Output_SlowD = { TA_Output_Real, "outSlowD", TA_OUT_DASH_LINE };static const TA_InputParameterInfo *TA_STOCH_Inputs[] ={ &TA_DEF_UI_Input_Price_HLC, NULL};static const TA_OutputParameterInfo *TA_STOCH_Outputs[] ={ &TA_DEF_UI_Output_SlowK, &TA_DEF_UI_Output_SlowD, NULL};static const TA_OptInputParameterInfo *TA_STOCH_OptInputs[] ={ &TA_DEF_UI_FastK_Period, &TA_DEF_UI_SlowK_Period, &TA_DEF_UI_SlowK_MAType, &TA_DEF_UI_SlowD_Period, &TA_DEF_UI_SlowD_MAType, NULL};DEF_FUNCTION( STOCH, /* name */ TA_GroupId_MomentumIndicators, /* groupId */ "Stochastic", /* hint */ "Stoch", /* CamelCase name */ 0 /* flags */ );/* STOCH END *//* STOCHF BEGIN */static const TA_OptInputParameterInfo TA_DEF_UI_FastD_Period ={ TA_OptInput_IntegerRange, /* type */ "optInFastD_Period", /* paramName */ 0, /* flags */ "Fast-D Period", /* displayName */ (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ 3, /* defaultValue */ "Smoothing for making the Fast-D line. Usually set to 3", /* hint */ NULL /* CamelCase name */};const TA_OptInputParameterInfo TA_DEF_UI_FastD_MAType ={ TA_OptInput_IntegerList, /* type */ "optInFastD_MAType", /* paramName */ 0, /* flags */ "Fast-D MA", /* displayName */ (const void *)&TA_MA_TypeList, /* dataSet */ 0, /* defaultValue = simple average */ "Type of Moving Average for Fast-D", /* hint */ NULL /* CamelCase name */};const TA_OutputParameterInfo TA_DEF_UI_Output_FastK = { TA_Output_Real, "outFastK", TA_OUT_LINE };const TA_OutputParameterInfo TA_DEF_UI_Output_FastD = { TA_Output_Real, "outFastD", TA_OUT_LINE };static const TA_InputParameterInfo *TA_STOCHF_Inputs[] ={ &TA_DEF_UI_Input_Price_HLC, NULL};static const TA_OutputParameterInfo *TA_STOCHF_Outputs[] ={ &TA_DEF_UI_Output_FastK, &TA_DEF_UI_Output_FastD, NULL};static const TA_OptInputParameterInfo *TA_STOCHF_OptInputs[] ={ &TA_DEF_UI_FastK_Period, &TA_DEF_UI_FastD_Period, &TA_DEF_UI_FastD_MAType, NULL};DEF_FUNCTION( STOCHF, /* name */ TA_GroupId_MomentumIndicators, /* groupId */ "Stochastic Fast", /* hint */ "StochF", /* CamelCase name */ 0 /* flags */ );/* STOCHF END *//* STOCHRSI BEGIN */static const TA_InputParameterInfo *TA_STOCHRSI_Inputs[] ={ &TA_DEF_UI_Input_Real, NULL};static const TA_OutputParameterInfo *TA_STOCHRSI_Outputs[] ={ &TA_DEF_UI_Output_FastK, &TA_DEF_UI_Output_FastD, NULL};static const TA_OptInputParameterInfo *TA_STOCHRSI_OptInputs[] ={ &TA_DEF_UI_TimePeriod_14_MINIMUM2, &TA_DEF_UI_FastK_Period, &TA_DEF_UI_FastD_Period, &TA_DEF_UI_FastD_MAType, NULL};DEF_FUNCTION( STOCHRSI, /* name */ TA_GroupId_MomentumIndicators, /* groupId */ "Stochastic Relative Strength Index", /* hint */ "StochRsi", /* CamelCase name */ TA_FUNC_FLG_UNST_PER /* flags */ );/* STOCHRSI END *//**************************************************************************** * Step 2 - Add your TA function to the table. * Keep in alphabetical order. Must be NULL terminated. ****************************************************************************/const TA_FuncDef *TA_DEF_TableS[] ={ ADD_TO_TABLE(SAR), ADD_TO_TABLE(SAREXT), ADD_TO_TABLE(SIN), ADD_TO_TABLE(SINH), ADD_TO_TABLE(SMA), ADD_TO_TABLE(SQRT), ADD_TO_TABLE(STDDEV), ADD_TO_TABLE(STOCH), ADD_TO_TABLE(STOCHF), ADD_TO_TABLE(STOCHRSI), ADD_TO_TABLE(SUB), ADD_TO_TABLE(SUM), NULL};/* Do not modify the following line. */const unsigned int TA_DEF_TableSSize = ((sizeof(TA_DEF_TableS)/sizeof(TA_FuncDef *))-1);/**************************************************************************** * Step 3 - Make sure "gen_code" is executed for generating all other * source files derived from this one. * You can then re-compile the library as usual and you are done! ****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -