OMX_BARINFO1
Previous  Top  Next

Prototype:

int OMX_BARINFO1( 
float Dt, float Tm, Double OpenEquity, Double OpenValue ) ;  

Purpose:
This function stores the passed values for Optimax to later display as an equity graph.

Parameters:
Dt  
an EasyLanguage date variable  
Tm  
an EasyLanguage time variable  
OpenEquity  
current value of the portfolio  
OpenValue  
current value of the open position; pass 0 if there is no open position  
 

Returns:
This function always returns 0.

Use:
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.

Notes:
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.