23 lines
458 B
C++
23 lines
458 B
C++
#pragma once
|
|
#include "OperatorCondition.h"
|
|
|
|
class TWSAPIDLLEXP MarginCondition : public OperatorCondition {
|
|
friend OrderCondition;
|
|
|
|
int m_percent;
|
|
|
|
public:
|
|
static const OrderConditionType conditionType = OrderConditionType::Margin;
|
|
|
|
protected:
|
|
MarginCondition() { }
|
|
|
|
virtual std::string valueToString() const;
|
|
virtual void valueFromString(const std::string &v);
|
|
|
|
public:
|
|
virtual std::string toString();
|
|
|
|
int percent();
|
|
void percent(int percent);
|
|
}; |