hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/CVAL.h
2019-03-18 23:12:01 +08:00

35 lines
685 B
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.

/*
* CVAL.h
*
* Created on: 2017-6-25
* Author: fasiondog
*/
#ifndef CVAL_H_
#define CVAL_H_
#include "../Indicator.h"
namespace hku {
/**
* 创建一个指定长度的常数指标
* @param value 常量
* @param discard 抛弃数量默认0
* @ingroup Indicator
*/
Indicator HKU_API CVAL(double value, size_t discard=0);
/**
* 创建一个常数指标其长度和输入的ind相同其值固定为指定value
* @param ind 待计算的数据
* @param value 常量
* @param discard 抛弃数量默认0
* @ingroup Indicator
*/
Indicator HKU_API CVAL(const Indicator& ind, double value = 0.0, int discard = 0);
} /* namespace */
#endif /* CVAL_H_ */