[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Addcolumn argument trouble



PureBytes Links

Trading Reference Links

I see that Graham's guess is correct. Note that you are testing FLOT for
an empty string, meaning it is a string and the reason for your compiler
error "Argument has incorrect type".

AddColumn( IIF( flot == "", null, flot ) , "Float" );

--
Terry

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Graham
Sent: Sunday, January 08, 2006 19:20
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Addcolumn argument trouble

I can only guess not knowing what the function is you are using to get
Flot value
If Flot can be "" then it is text, ion which case you need
addtextcolumn, and you would need use writeif not iif. Or if it is
numbers that appear as text then change it to a number strtonum, then
you can have it in addcolumn
If it is numbers then flot cannot be "", but would be null or zero

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

On 1/9/06, Anthony Faragasso <ajf1111@xxxxxxxx> wrote:
>
> Hello,
>
> Looking at the image file...can anyone point out the problem in the 2
Addcolumn() lines...I can not seem to see it..
>
> Thank you
> Anthony
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
>
>
> SPONSORED LINKS
> Investment management software Real estate investment software
Investment property software
> Software support Real estate investment analysis software Investment
software
>
> ________________________________
YAHOO! GROUPS LINKS
>
>
>  Visit your group "amibroker" on the web.
>
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> ________________________________

>



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/