hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/TAN.h
2019-05-01 19:04:18 +08:00

36 lines
508 B
C++

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