You may use AddMultiTextColumn function of AmiBroker 6.20 to achieve that.
Version( 6.20);// code requires AB 6.20 minimum
EMAA=EMA(Close, 5);
EMAB=EMA(Close, 8);
EMAC=EMA(Close, 13);
Buy= Cross(EMAA,EMAB) AND EMAB>EMAC;
Sell=Cross(EMAB,EMAA) AND EMAC>EMAB ;
B=WriteIf(Buy, "Buy","0");
S=WriteIf(Sell,"Sell","0");
// if you want to remove excessive signals
// then uncomment below two lines
//Buy = ExRem( Buy, Sell );
//Sell = ExRem( Sell, Buy );
Filter= Buy OR Sell;
AddColumn(EMAA,"EMAA",format=1.2);
AddColumn(EMAB,"EMAB",format=1.2);
AddColumn(EMAC,"EMAC",format=1.2);
AddColumn(Close,"Close Price", format=1.2);
AddColumn(Buy,"Buy");
AddColumn(Sell,"Sell");
/// edited Example from AmiBroker manual
/// @link https://www.amibroker.com/guide/afl/addmultitextcolumn.html
TextList = "No signal\nBuy\nSell\nBuy and Sell";
TextSelector = 1 * Buy + 2 * Sell; /* would give 0 if no signal, 1 if a buy, 2 if a sell, 3 if both buy and sell */
AddMultiTextColumn( TextSelector, TextList, "Which signal", 1, IIf( Buy, colorGreen, IIf( Sell, colorRed, colorBlue) );

Or for version lower than AB 6.20
EMAA=EMA(Close, 5);
EMAB=EMA(Close, 8);
EMAC=EMA(Close, 13);
Buy= Cross(EMAA,EMAB) AND EMAB>EMAC;
Sell=Cross(EMAB,EMAA) AND EMAC>EMAB ;
B=WriteIf(Buy, "Buy","0");
S=WriteIf(Sell,"Sell","0");
// if you want to remove excessive signals
// then uncomment below two lines
//Buy = ExRem( Buy, Sell );
//Sell = ExRem( Sell, Buy );
Filter= Buy OR Sell;
AddColumn(EMAA,"EMAA",format=1.2);
AddColumn(EMAB,"EMAB",format=1.2);
AddColumn(EMAC,"EMAC",format=1.2);
AddColumn(Close,"Close Price", format=1.2);
AddColumn(Buy,"Buy");
AddColumn(Sell,"Sell");
AddColumn( IIf(Buy, 'B', IIf( Sell, 'S', 'N') ), "Which Signal", formatchar, IIf( Buy, colorGreen, IIf( Sell, colorRed, colorBlue)) );
