Indicator that creates a .txt

 

Hello,

I'm looking for the code to have my indicator write a .txt file to a specific map everytime a signal is given. The text should contain long or short depening on the signal. I'm not very good at mq4 coding, so I was wondering if anyone knew this code or could point me in the right direction? I need it for my MACD crossover alert indicator.

Thanks!

Reason: