Just as a follow-up, I heard from Tomasz off-line.

At the moment, it can't be done with NumToStr.  He is considering whether to 
modify NumToStr.  One issue:  because the underlying values are doubles, the 
numbers are large, 32- or 64 bits-worth, depending on your platform.

--- In amibroker@yahoogroups.com, "whitneybroach" <whitneybro...@...> wrote:
>
> 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