求助:請問AMI有沒有指定交易時段的功能?

Discussion in 'AmiBroker' started by sis, Aug 19, 2007.

  1. sis

    sis

    想試用Amibroker生成一個自動交易系統,不知道AMI有沒有指定某個交易系統在某個時段交易的功能?如在12HO1開倉,在12H59平倉。謝謝
     
  2. 欢迎来自巴黎的坛友!
     
  3. sis

    sis

    謝謝,請多多指教。
     
  4. 可以,使用下面这条命令

    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
     
  5. sis

    sis

    謝謝,記下,新手要慢慢消化。
     
  6. sis

    sis

    消化不良。請各位有空又方便時解釋這一這段指令。謝謝…