This function stores the passed values for Optimax to later display as an equity graph.
an EasyLanguage date variable
an EasyLanguage time variable
current value of the portfolio
current value of the open position; pass 0 if there is no open position
This function always returns 0.
Call this function each time you want to store a data point for the equity curve. The value is stored as a "B" record in the G######I######.csv file.
Storing a data point for every bar on an intra day is not advisable, since this can severely degrade the performance of the optimization in TradeStation and in Optimax, and the full level of detail isn't necessary in Optimax.