How would I phrase IIF close => 1.00, then 2 decimal places , otherwise use the floating price value from the data vendor rather than specifying a strict number of decimal places and then convert that to a string for output.
//Keep Excel from scientific notation on small numbers by converting to text
Example two symbols:
BLFS is $36.00
CTXC-BTC is $0.000007 //Cryptocurrency
I'm sure there is an easy way in AFL as this get me an error.
It is recommended to use fixed format because it really looks ugly if numbers are displayed differently in different rows, but if you must, you can display different number of decimal places per symbol this way:
TJ,
This works perfect for AddColumn(), Thank you.
How do I convert that format to a variable _Newfmt to display appropriately in a
Plot() statement or insert into an AddTextColumn()
I don't see a format = after Plot(... as with AddColumn().
How do I truncate the variable to display only two digits if >= $1.00, otherwise display decimals without scientific notation. When I put a variable with very small crypto price into an AddTextColumn(), it will occasionally displays scientific notation, which I am trying to avoid.