hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/SIN.h
2019-05-01 17:49:27 +08:00

36 lines
508 B
C++

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