How to make text file using afl after show buy/sell Arrow

i am new in amibroker i want to make a text file in folder using my afl when genereted every buy/sell signal in i have tried
if(buy[i])
{
mkdir("c:\signal\" + name());
}
but issue is that it make folder after aplying formula i want to only after signal make a folder with name of symbol
thanks

Your user account isn't marked with License verified badge. Did you purchase AmiBroker license?

Only users with License verified badge are allowed to post on this forum.

So before posting, make sure you verify your license as explained here.

Thread closed until poster proves having valid license.