MarketTechnicals.jl
MarketTechnicals.jl copied to clipboard
Implement padding=true option on all consumption algorithms
This package currently chops off and throws away time values where an algorithm consumes values. The padding=true
option will allow users to preserve consumed dates and will use NaN
as a placeholder.
I guess that we can craft a macro to achieve this? like the decorator in Python.
@milktrader
I'm working on this issue.
I was wondering to known what is the main reason not to use moving(ta, mean, n)
in SMA?[1]
1.https://github.com/JuliaQuant/MarketTechnicals.jl/blame/master/src/movingaverages.jl#L5-L10
@milktrader please check out #90 !
I think NaN
sentinels as placeholders for consumed values is fine with all the shifting that happens with technical analysis. I wanted TimeSeries to be more pure about it, but here it works for me.
I wanted TimeSeries to be more pure about it, but here it works for me.
sry, I do not understand your meaning...
I feel it's better for packages other than TimeSeries to make the call about making padding=true
the default. TimeSeries does not do this by default.