IOrder ReliableEnterLongLimit(int qt,double price,string sig) { IOrder tryout; tryout=null; while (tryout==null) { tryout=EnterLongLimit(qt,price,sig); if (tryout==null) System.Threading.Thread.Sleep(100); } return(tryout); }
Now, first, why can I get a NULL from an EnterLongLimit/EnterShortLimit , and second, how to go around it?
Comment