#property strict
class OrderInfo
{
public :
int orderNum;
double price;
double lots;
int type;
double stopLoss;
double takeProfit;
string comment;
public :
OrderInfo(int number,double pri,double ls,int ty,double loss,double profit ,string com){
this.orderNum=number;
this.price=pri;
this.lots=ls;
this.type=ty;
this.stopLoss=loss;
this.takeProfit=profit;
this.comment=com;
}
OrderInfo(){}
void setLots(double ls){
this.lots=ls;
}
double getLots(){
return this.lots;
}
void setOrderNum(int num){
this.orderNum=num;
}
double getOrderNum(){
return this.orderNum;
}
void setPrice(double pr){
this.price=pr;
}
double getPrice(){
return this.price;
}
void setType(int ty){
this.type=ty;
}
int getType(){
return this.type;
}
void setStopLoss(double loss){
this.stopLoss=loss;
}
double getStopLoss(){
return this.stopLoss;
}
void setTakeProfit(double profit){
this.takeProfit=profit;
}
double getTakeProfit(){
return this.takeProfit;
}
void setComment(string com){
this.comment=com;
}
string getComment(){
return this.comment;
}
string toString(){
return "OrderNumber :"+orderNum+" Lots :"+lots+" Type : "+type+" price :"+price+" stopLoss :"+stopLoss+" takeProfit :"+takeProfit+" comment :"+comment;
}
};
发表评论