MerlinR / Hexital

Hexital - Incremental Technical Analysis Library
MIT License
6 stars 2 forks source link

Add Modular framework to convert candles, E.G Renko, Range, Heikin-Ashi, etc #9

Closed MerlinR closed 5 months ago

MerlinR commented 5 months ago

One of the last core pieces of functionality i wish to add before leaving Alpha, is adding a modular way to re-paint/re-shape the candles into different candles sticks, such as Does Heikin-Ashi, Renko, Range limits. Commit https://github.com/MerlinR/Hexital/commit/a0ca592eff5c75f4928c1625dae5a25fd302be71, Added the CandleManager class, which Managers the list of Candles and is passed as a reference from Hexital, rather than passing the list directly. This Manager, handles Appending, Purging, trimming and collapsing timeframes rather then Hexital or the Indicator directly.

This would ideally also be able to be given a method to convert the candlesticks, this could mean it be given a class or function which converts the List[Candle] allowing it to be modular.

However, if mixed with collapsing timeframes, it may cause issue's of collapsing candlesticks to a tiemframe and converting it to the new format, Before the candlestick is complete, somewhat dependent on converting too. Therefore https://github.com/MerlinR/Hexital/issues/7 will need more investigation.

MerlinR commented 5 months ago

Added in: https://github.com/MerlinR/Hexital/commit/7bd25ab2804b82913632ac78087c0b598dd69803