mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-05 05:17:47 +08:00
36 lines
766 B
C++
36 lines
766 B
C++
/*
|
||
* LLVBARS.h
|
||
*
|
||
* Copyright (c) 2019 hikyuu.org
|
||
*
|
||
* Created on: 2019-4-14
|
||
* Author: fasiondog
|
||
*/
|
||
|
||
#ifndef INDICATOR_CRT_LLVBARS_H_
|
||
#define INDICATOR_CRT_LLVBARS_H_
|
||
|
||
#include "../Indicator.h"
|
||
|
||
namespace hku {
|
||
|
||
/**
|
||
* 上一低点位置 求上一低点到当前的周期数。
|
||
* @details
|
||
* <pre>
|
||
* 用法:LLVBARS(X,N):求N周期内X最低值到当前周期数N=0表示从第一个有效值开始统计
|
||
* 例如:LLVBARS(HIGH,20)求得20日最低点到当前的周期数
|
||
* </pre>
|
||
* @ingroup Indicator
|
||
*/
|
||
Indicator HKU_API LLVBARS(int n = 20);
|
||
Indicator LLVBARS(const Indicator& ind, int n = 20);
|
||
|
||
inline Indicator LLVBARS(const Indicator& ind, int n) {
|
||
return LLVBARS(n)(ind);
|
||
}
|
||
|
||
} /* namespace */
|
||
|
||
#endif /* INDICATOR_CRT_LLVBARS_H_ */
|