hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/ACOS.h
2019-05-01 18:46:42 +08:00

36 lines
519 B
C++

/*
* ACOS.h
*
* Copyright (c) 2019 hikyuu.org
*
* Created on: 2019-5-1
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_ACOS_H_
#define INDICATOR_CRT_ACOS_H_
#include "CVAL.h"
namespace hku {
/**
* 余弦值
* @ingroup Indicator
*/
Indicator HKU_API ACOS();
Indicator ACOS(price_t);
Indicator ACOS(const Indicator& ind);
inline Indicator ACOS(const Indicator& ind) {
return ACOS()(ind);
}
inline Indicator ACOS(price_t val) {
return ACOS(CVAL(val));
}
}
#endif /* INDICATOR_CRT_ACOS_H_ */