hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/PRICELIST.h
2019-05-27 23:18:59 +08:00

52 lines
1.0 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.

/*
* PRICELIST.h
*
* Created on: 2013-2-14
* Author: fasiondog
*/
#ifndef PRICELIST_H_
#define PRICELIST_H_
#include "../Indicator.h"
#define VALUE PRICELIST
namespace hku {
/**
* 包装PriceList成Indicator
* @param data 源数据
* @param discard 前端抛弃的数据点数抛弃的值使用Null<price_t>()填充
* @ingroup Indicator
*/
Indicator HKU_API PRICELIST(const PriceList&, int discard = 0);
/**
* 将某指标转化为PRICELIST
* @param ind 源数据
* @param result_index 源数据中指定的结果集
* @ingroup Indicator
*/
Indicator HKU_API PRICELIST(const Indicator& ind, int result_index = 0);
/**
* 将某指标转化为PRICELIST
* @param result_index 源数据中指定的结果集
* @ingroup Indicator
*/
Indicator HKU_API PRICELIST(int result_index = 0);
/**
* 包装 price_t 数组成Indicator用于计算其他指标
* @param data price_t[]
* @param total 数组大小
* @ingroup Indicator
*/
Indicator HKU_API PRICELIST(price_t *data, size_t total);
} /* namespace */
#endif /* PRICELIST_H_ */