Fetch the repository succeeded.
#ifndef _TECH_USER_H_
#define _TECH_USER_H_
#include "TechLib.h"
#include "Technique.h"
#include <PlatformStruct.h>
// 用户外挂指标
class InstrumentData;
class TECH_API custom_indicator : public TechnicalIndicator
{
public:
// Constructors
custom_indicator( );
custom_indicator( KdataContainer * pKData );
virtual ~custom_indicator();
// static functions
static UINT GetTechUserCount();
static std::string GetTechUserName(int nTech);
static std::string GetTechUserShortName( int nTech );
// techuser attributes
bool SetTechUserID( int nTechUserID );
UINT GetTechUserID( );
void SetInstrument( InstrumentData * pInstrument );
UINT GetLineCount( );
const char* GetLineName( int nLine );
public:
virtual void clear( ); // 清除
public:
// Attributes
virtual void SetDefaultParameters( ); // 设定缺省参数
void attach( custom_indicator & src ); // 指定参数与src相同
virtual bool IsValidParameters( ); // 参数是否合法
// Operations
virtual int signal( size_t nIndex, uint32_t * pnCode = NULL ); // 得到买卖信号
virtual int intensity( size_t nIndex, uint32_t * pnCode = NULL, bool bTraceBack = true ); // 得到买卖趋势信号
virtual int intensity_traceback( size_t nIndex, uint32_t * pnCode = NULL ); // 得到买卖趋势信号
virtual bool min_max_info( size_t nStart, size_t nEnd, double *pdMin, double *pdMax ); // 得到最大最小值
virtual bool calc( double * pValue, size_t nIndex, bool bUseLast ); // 计算指标值
virtual bool calc( double * pValue1, double * pValue2, size_t nIndex, bool bUseLast ); // 计算指标值
virtual bool calc( double * pValue1, double * pValue2, double * pValue3, size_t nIndex, bool bUseLast ); // 计算指标值
virtual bool calc( double * pValue1, double * pValue2, double * pValue3, double * pValue4, size_t nIndex, bool bUseLast ); // 计算指标值
virtual bool calc( double * pValue1, double * pValue2, double * pValue3, double * pValue4, double * pValue5, size_t nIndex, bool bUseLast ); // 计算指标值
protected:
size_t m_nTechUserID;
TECHUSER_INFO m_techuserinfo;
InstrumentData * m_pInstrument;
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。