mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
31 lines
581 B
C++
31 lines
581 B
C++
/*
|
|
* ICount.h
|
|
*
|
|
* Created on: 2019-3-25
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#ifndef ICOUNT_H_
|
|
#define ICOUNT_H_
|
|
|
|
#include "../Indicator.h"
|
|
|
|
namespace hku {
|
|
|
|
/*
|
|
* 统计总数 统计满足条件的周期数。
|
|
* COUNT(X,N),统计N周期中满足X条件的周期数,若N=0则从第一个有效值开始。
|
|
* COUNT(CLOSE>OPEN,20)表示统计20周期内收阳的周期数
|
|
*/
|
|
class ICount: public IndicatorImp {
|
|
INDICATOR_IMP(ICount)
|
|
INDICATOR_IMP_NO_PRIVATE_MEMBER_SERIALIZATION
|
|
|
|
public:
|
|
ICount();
|
|
virtual ~ICount();
|
|
};
|
|
|
|
} /* namespace hku */
|
|
#endif /* ICOUNT_H_ */
|