hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/LOG.h
2019-11-10 23:31:41 +08:00

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

/*
* LOG.h
*
* Created on: 2019-4-11
* Author: fasiondog
*/
#pragma once
#ifndef INDICATOR_CRT_LOG_H_
#define INDICATOR_CRT_LOG_H_
#include "CVAL.h"
namespace hku {
/**
* 以10为底的对数
* 用法LOG(X)取得X的对数
* @ingroup Indicator
*/
Indicator HKU_API LOG();
Indicator LOG(price_t);
Indicator LOG(const Indicator& ind);
inline Indicator LOG(const Indicator& ind) {
return LOG()(ind);
}
inline Indicator LOG(price_t val) {
return LOG(CVAL(val));
}
} // namespace hku
#endif /* INDICATOR_CRT_LOG_H_ */