Hi,
Ive got some code that creates orders. Im passing a magic number to it..
for some reason, when I call the function
OrderSelect(cnt,SELECT_BY_POS);
if (OrderMagicNumber() == MagicNumber)
Blah blah.
About half the time, it returns zero for the magic number.. Its like it wont store it..
Ive even tried a hard coded constant.. Still acts up.. I noticed the think in my CloseAllOrders routine.. It was only closing half of them..
Any Ideas??
Gordon
Ive got some code that creates orders. Im passing a magic number to it..
for some reason, when I call the function
OrderSelect(cnt,SELECT_BY_POS);
if (OrderMagicNumber() == MagicNumber)
Blah blah.
About half the time, it returns zero for the magic number.. Its like it wont store it..
Ive even tried a hard coded constant.. Still acts up.. I noticed the think in my CloseAllOrders routine.. It was only closing half of them..
Any Ideas??
Gordon