Fetch the repository succeeded.
#ifndef _TECH_CW_H_
#define _TECH_CW_H_
#include "TechLib.h"
#include "Tech.h"
#include "Technique.h"
#include <vector>
// ֲͼCW
class InstrumentData;
class TECH_API CCW : public TechnicalIndicator
{
public:
// Constructors
CCW( );
CCW( KdataContainer * pKData );
virtual ~CCW();
public:
virtual void clear( );
// Attributes
double m_dChangeHand;
virtual void SetDefaultParameters( );
void attach( CCW & src );
virtual bool IsValidParameters( );
// Operations
bool GetRange( std::size_t & nStart, std::size_t & nEnd, InstrumentInfo & info );
bool min_max_info( std::size_t nStart, std::size_t nEnd, double dMinPrice, double dMaxPrice, double dStep,
double *pdMinVolume, double *pdMaxVolume );
bool CalculateCW( double *pdVolume, std::size_t nStart, std::size_t nEnd, double dPrice, double dStep );
bool CalculateCW( std::size_t nStart, std::size_t nEnd, InstrumentInfo & info, double dStep,
std::vector<uint32_t> & adwPrice, std::vector<uint32_t> & adwVolume,
double * pdMinVolume, double * pdMaxVolume, double * pdTotalVolume, double * pdVolPercent );
bool CalculateRecentCW( std::size_t nEnd, std::size_t nDays, InstrumentInfo & info, double dStep,
std::vector<uint32_t> & adwPrice, std::vector<uint32_t> & adwVolume,
double * pdMinVolume, double * pdMaxVolume, double * pdTotalVolume, double * pdVolPercent );
bool CalculatePastCW( std::size_t nEnd, std::size_t nDays, InstrumentInfo & info, double dStep,
std::vector<uint32_t> & adwPrice, std::vector<uint32_t> & adwVolume,
double * pdMinVolume, double * pdMaxVolume, double * pdTotalVolume, double * pdVolPercent );
// Stat
static bool StatGainPercent(double *pdGainPercent, std::vector<uint32_t> &adwPrice, std::vector<uint32_t> &adwVolume, double dPriceSel);
static bool StatCostAverage(double *pdCostAve, std::vector<uint32_t> &adwPrice, std::vector<uint32_t> &adwVolume);
static bool StatMass(double *pdLower, double *pdUpper, double *pdMassPrice, std::vector<uint32_t> &adwPrice, std::vector<uint32_t> &adwVolume, double dMassVol);
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。