mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
32 lines
534 B
C++
32 lines
534 B
C++
/*
|
|
* ROCR100.h
|
|
*
|
|
* Copyright (c) 2019, hikyuu.org
|
|
*
|
|
* Created on: 2019-5-18
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#pragma once
|
|
#ifndef INDICATOR_CRT_ROCR100_H_
|
|
#define INDICATOR_CRT_ROCR100_H_
|
|
|
|
#include "../Indicator.h"
|
|
|
|
namespace hku {
|
|
|
|
/**
|
|
* 变动率指标 (price / prevPrice) * 100
|
|
* @ingroup Indicator
|
|
*/
|
|
Indicator HKU_API ROCR100(int n =10);
|
|
Indicator ROCR100(const Indicator& ind, int n = 10);
|
|
|
|
inline Indicator ROCR100(const Indicator& ind, int n) {
|
|
return ROCR100(n)(ind);
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* INDICATOR_CRT_ROCR100_H_ */
|