可以,使用下面这条命令 TIMENUM - get current bar time Date/Time (AFL 2.0) SYNTAX timenum() RETURNS ARRAY FUNCTION Returns the array with numbers that represent quotation time coded as follows: 10000 * hour + 100 * minute + second, so 12:37:15 becomes 123715 EXAMPLE TimeNum() SEE ALSO Hour(), Minute(), Second(), TimeNum() References: The TIMENUM function is used in the following formulas in AFL on-line library: AR_Prediction.afl Date_To_Num(), Time_To_Num() Lagging MA-Xover Moving Averages NoX Rea Time Daily Price Levels Time Left in Bar Trigonometric Fit - TrigFit with AR for cos / sin TWS auto-export Executions-file parser More information: Updated on-line reference http://www.amibroker.com/guide/afl/afl_view.php?name=TIMENUM