hikyuu2/hikyuu_cpp/hikyuu/indicator/crt/TIMELINE.h

41 lines
730 B
C++
Raw Normal View History

2019-05-15 22:04:16 +08:00
/*
* TIMELINE.h
*
* Copyright (c) 2019 hikyuu.org
*
* Created on: 2019-5-15
* Author: fasiondog
*/
#ifndef INDICATOR_CRT_TIMELINE_H_
#define INDICATOR_CRT_TIMELINE_H_
#include "../Indicator.h"
namespace hku {
Indicator HKU_API TIMELINE();
Indicator HKU_API TIMELINE(const KData&);
Indicator TIMELINEVOL();
Indicator TIMELINEVOL(const KData&);
inline Indicator TIMELINEVOL() {
Indicator ind = TIMELINE();
ind.name("TIMELINEVOL");
ind.setParam<string>("part", "vol");
return ind;
}
inline Indicator TIMELINEVOL(const KData& k) {
Indicator ind = TIMELINE(k);
ind.name("TIMELINEVOL");
ind.setParam<string>("part", "vol");
return ind;
}
}
#endif /* INDICATOR_CRT_TIMELINE_H_ */