hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/EXP.h
2019-04-11 02:10:41 +08:00

34 lines
505 B
C++

/*
* EXP.h
*
* Created on: 2019-4-3
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_EXP_H_
#define INDICATOR_CRT_EXP_H_
#include "CVAL.h"
namespace hku {
/**
* 指数, EXP(X)为e的X次幂
* @ingroup Indicator
*/
Indicator HKU_API EXP();
Indicator EXP(price_t);
Indicator EXP(const Indicator& ind);
inline Indicator EXP(const Indicator& ind) {
return EXP()(ind);
}
inline Indicator EXP(price_t val) {
return EXP(CVAL(val));
}
} /* namespace */
#endif /* INDICATOR_CRT_EXP_H_ */