- bool Check(string symb, double lots,int type)
- {
- double free_margin=AccountFreeMarginCheck(symb,type, lots);
-
- if(free_margin<0)//-- 如果资金不够
- {
- string oper=(type==OP_BUY)
- Print("资金不足以进行", oper," ",lots, " ", symb, " 错误编号",GetLastError());
- return(false);
- }
-
- return(true);//--- 检验成功
- }
复制代码
|