Syntax Require for Adding Column in Exploration window

pkgmtnl

Well-Known Member
#1
Can anybody having knlowledge of AFL writing help?

The syntax for adding Column for date & Time is
AddColumn( DateTime(), "Date", formatDateTime );

I want to add a column for Time only (no date), How to write that

I have found some syntax for this like
mytimenum = DateTimeConvert( 1, DateTime() );

How to insert this syntax ?

Please give answer to enable to write
AddColumn(...............);
thnx



I got it today it is
AddColumn(TimeNum(),"Time",1);

for benefit of all..
bye
 
Last edited:

vinodkiyer

Well-Known Member
#3
AddColumn( IIf(Buy OR Sell , TimeNum(), IIf(Short OR Cover , TimeNum(),01 )), "Time", 1, colorWhite, bkcolor= IIf(Short OR Cover ,colorDarkRed,colorDarkGreen) );

also in tools - preferences - miscellaneous - thousand separator remove the comma
 

pkgmtnl

Well-Known Member
#4
AddColumn( IIf(Buy OR Sell , TimeNum(), IIf(Short OR Cover , TimeNum(),01 )), "Time", 1, colorWhite, bkcolor= IIf(Short OR Cover ,colorDarkRed,colorDarkGreen) );

also in tools - preferences - miscellaneous - thousand separator remove the comma
Is there anyway to autofit columns?
 

vinodkiyer

Well-Known Member
#5
no, no auto fit, but in 5.29 version and above versions if u right click on the column header in auto analysis window, u have the choice of removing unnecessary columns
 

Similar threads