ta4j icon indicating copy to clipboard operation
ta4j copied to clipboard

order book imbalance

Open hello-212 opened this issue 3 years ago • 2 comments

any suggestions for building out orderbook imbalance indicator? seem to be able to stitch some pieces of code together from other indicators but nothing specific for OFI. thanks in advance

hello-212 avatar Mar 01 '22 08:03 hello-212

We could add a new core model interface (ex. OrderBook) and then add another isSatisfied overload to Rule, i.e. boolean isSatisfied(int index, TradingRecord tradingRecord, OrderBook orderBook)

It's kind of a bolt-on approach but it's very quick to get off the ground, consistent with the existing approach, and there should be little (if any) backwards compatibility issues or required refactoring.

TheCookieLab avatar Jan 18 '23 21:01 TheCookieLab

Related: https://github.com/ta4j/ta4j/pull/961#issuecomment-1515119151

nimo23 avatar Jun 17 '23 10:06 nimo23