Skip to content

Typo in 訊號進出場(hold_until) #1

Description

@yuting1214

https://doc.finlab.tw/details/backtest_decorator/#hold_until

訊號進出場(hold_until)

這是所有策略撰寫中,最重要的語法糖,用法為:

from finlab import data

close = data.get('price:收盤價')
buy = close > close.averate(5)
sell = close < close.average(20)

position = buy.hold_until(sell)

Should be ->

buy = close > close.average(5)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions