mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 20:37:50 +08:00
32 lines
637 B
C++
32 lines
637 B
C++
/*
|
|
* ICount.h
|
|
*
|
|
* Created on: 2019-3-25
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#pragma once
|
|
#ifndef INDICATOR_IMP_ICOUNT_H_
|
|
#define INDICATOR_IMP_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 /* INDICATOR_IMP_ICOUNT_H_ */
|