Equity-Monitor / Write to file Indicator

 

Hello guys,

Respectfully found an indicator online that was close to what I was looking for.  Did some slight modifications, however, I'm stuck on making the Indicator write to file.  I was wondering if any expert would be willing to give it a look to see what I'm missing there.  In short, its presently showing Real Time realized and unrealized PnL, now i just want it to write it to file.  Ideally for either A) each position closed/opened + Pnl or B) say every 15 minutes write to file equity and floating.

Files:
Reason: