Ami Auto analysis window query

ajeetsingh

Well-Known Member
#11
I am using this code for getting latest signal at top in exploration for intraday.

Code:
mytimenum = DateTimeConvert( 1, DateTime() ); // - returns timenum 
AddColumn(C ,"Price",1.2,colorBlack, IIf( Buy, colorGreen,IIf(Sell,colorRed,colorWhite) ));
AddColumn( IIf(Buy, 66, IIf(Sell, 83,01 )), "ACTION ", formatChar, IIf(Sell,colorRed,colorGreen) );
AddColumn( TimeNum(), "Date / Time", format=1); 
SetSortColumns( -5) ;
Remove columns which you dont want then also change number of "setsortcolumn" but put negative sign in front.

 
Last edited:

trash

Well-Known Member
#12
Trash

I think what Mohan means is that if you see the result window the time is denoted by 24 hour system,so ideally it should sort by the ascending or descending order.

In the picture there are highlighted entries denote time which ideally should be on the top row in the results.

Is there any way another column could be created only for the time?


No. Look at the trade column. It sorts by two involving columns.

Code:
if( Status( "action" ) == actionScan )
	SetSortColumns( 2, 3 );
I have already posted picture and code sorting by date only but that is not what he wants.

Anyway in both cases it is working fine.
 

Similar threads