hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/KDATA.h
2019-08-03 15:14:39 +08:00

74 lines
1.6 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* IKDATA.h
*
* Created on: 2013-2-14
* Author: fasiondog
*/
#include "../Indicator.h"
namespace hku {
/**
* 包装KData成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API KDATA();
Indicator HKU_API KDATA(const KData&);
/**
* 包装KData的开盘价成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API OPEN();
Indicator HKU_API OPEN(const KData&);
/**
* 包装KData的最高价成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API HIGH();
Indicator HKU_API HIGH(const KData&);
/**
* 包装KData的最低价成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API LOW();
Indicator HKU_API LOW(const KData&);
/**
* 包装KData的收盘价成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API CLOSE();
Indicator HKU_API CLOSE(const KData&);
/**
* 包装KData的成交金额成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API AMO();
Indicator HKU_API AMO(const KData&);
/**
* 包装KData的成交量成Indicator用于其他指标计算
* @ingroup Indicator
*/
Indicator HKU_API VOL();
Indicator HKU_API VOL(const KData&);
/**
* 根据字符串选择返回KDATA/OPEN/HIGH/LOW/CLOSE/AMO/VOL
* @param kdata K线数据
* @param kpart KDATA|OPEN|HIGH|LOW|CLOSE|AMO|VOL
* @see KDATA, OPEN, HIGH, LOW, CLOSE, AMO, VOL
* @ingroup Indicator
*/
Indicator HKU_API KDATA_PART(const KData& kdata, const string& kpart);
Indicator HKU_API KDATA_PART(const string& kpart);
} /* namespace */