hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/LLVBARS.h
2019-04-14 21:26:46 +08:00

36 lines
766 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.

/*
* 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_ */