OrdersInfo.mqh

#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;
      }
};
本博客所有文章如无特别注明均为原创。作者:天泓评测
分享到:更多

相关推荐

发表评论

路人甲 表情
Ctrl+Enter快速提交

网友评论(2)

Generally I don't learn post on blogs, however I wish to say that this write-up very pressured me
to check out and do it! Your writing style has been amazed me.
Thanks, very nice article.
ZZ 3个月前 (2020-03-04) 回复
@ZZ:hugs,skype:kitgain
天泓评测 3个月前 (2020-03-04) 回复