There are two ways to do it. The first for each market is simple.
FileAppend("c:\MyResults\"&getactivesymbol()&Equ.csv",formatdatetime(Date)&","&NetProfit)
This would write out date and netprofi on a bar by bar basis and save it in a file with the active symbol name. The second way is to create the files from a macro.
Here is an example of using getequity from a macro. These features are part of the processor object.
The following example demonstrates GetEquity :
Sub MacroTest()
Dim S As TSProcessor.ISession
Dim EqDates As Array
Dim EqVals As Array
Dim i As Integer
S = Processor.LoadSession("CHANBREAKOUT")
If IsNull(S) Then
MsgBox("Session cannot be loaded.")
Exit Sub
End If
If Not S.RunParams("25") Then
MsgBox("Error running session")
Exit Sub
End If
S.ShowForm()
Print S.EquityCount
S.GetEquity(EqDates, EqVals)
For i = 0 To UBound(EqDates) - 1
Print FormatDateTime(EqDates[i]), " ", EqVals[i]
Next
End Sub