uniVocity / univocity-trader

open-source trading framework for java, supports backtesting and live trading with exchanges
578 stars 140 forks source link

Previous candles #132

Closed intothemoonlite closed 2 years ago

intothemoonlite commented 2 years ago

Hi, within a strategy's getSignal is it possible to get previous candles?

jbax commented 2 years ago

No. You need to use a CircularList to keep track of the previous n candles.

On Fri, Aug 27, 2021, 3:33 AM intothemoonlite @.***> wrote:

Hi, within a strategy's getSignal is it possible to get previous candles?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uniVocity/univocity-trader/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWFQPTBZMF5ZXZAIRP527TT6Z6WRANCNFSM5C34LIHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

intothemoonlite commented 2 years ago

Thanks this worked.