long SeriesInfoInteger( stringsymbol_name, // symbol name ENUM_TIMEFRAMEStimeframe, // period ENUM_SERIES_INFO_INTEGERprop_id // property identifier );
関数の実行の成功に応じて、trueまたはfalseを返します。
bool SeriesInfoInteger( stringsymbol_name, // symbol name ENUM_TIMEFRAMEStimeframe, // period ENUM_SERIES_INFO_INTEGERprop_id, // property ID long&long_var// variable for getting info );
voidOnStart() { //— Print(“Total number of bars for the symbol-period at this moment = “, SeriesInfoInteger(Symbol(),0,SERIES_BARS_COUNT)); Print(“The first date for the symbol-period at this moment = “, (datetime)SeriesInfoInteger(Symbol(),0,SERIES_FIRSTDATE)); Print(“The first date in the history for the symbol-period on the server = “, (datetime)SeriesInfoInteger(Symbol(),0,SERIES_SERVER_FIRSTDATE)); }