23 lines
523 B
C++
23 lines
523 B
C++
#pragma once
|
|
#include "ContractCondition.h"
|
|
#include "Order.h"
|
|
|
|
class TWSAPIDLLEXP PercentChangeCondition : public ContractCondition {
|
|
friend OrderCondition;
|
|
|
|
double m_changePercent;
|
|
|
|
protected:
|
|
PercentChangeCondition()
|
|
: m_changePercent(UNSET_DOUBLE)
|
|
{ }
|
|
|
|
virtual std::string valueToString() const;
|
|
virtual void valueFromString(const std::string &v);
|
|
|
|
public:
|
|
static const OrderConditionType conditionType = OrderConditionType::PercentChange;
|
|
|
|
double changePercent();
|
|
void changePercent(double changePercent);
|
|
}; |