How do I write an openpos.Handle value to trace?  Does the double format not 
convert in NumToStr?

Code like this produces only zeros from inside the openpos loop:

//////////////////

for( openpos = bo.GetFirstOpenPos(); openpos ; openpos = bo.GetNextOpenPos() )
{
_trace( NumToStr( openpos.Handle, 1.0, False ) );

// substituting 1.5 for 1.0 produces more zeros

}// for openpos

//////////////////

(The code is checking to see if a dividend has already been paid on an open 
position.  Must be able to use multiple positions per symbol.)

Reply via email to