there are no errors when compiling, but the ouputbox show nothing when i run it,
here is the code,
protected override void Initialize()
{
CalculateOnBarClose = true;
}
protected override void OnMarketData(MarketDataEventArgs e)
{
int i = 0 ;
if( BarsInProgress == i )
{
DateTime currentDateTime = Time[i];
//if( CheckRecordDateTime( currentDateTime ))
//{
Print( Time[i].ToString("yyyy-MM-dd HH:mm:ss") + " " +
"[" + i + "-Bid] " + MarketDataType.Bid + " , " +
"[" + i + "-Ask] " + MarketDataType.Ask + " , " +
"[" + i + "-Last] " + MarketDataType.Last + " , " +
"[" + i + "-Volume] " + Volume );
//}
}
}
thanks in advance
Comment