You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I have a more clear idea about implementing this and #52:
Put an option struct at the head of all the function body.
e.g.
struct Option
...endfunctionta_args(opt) # return the args need to be passed to TimeArray functions, e.g. `padding`...endfunctionmyma(...; ..., kw...)
opt =Option(kw...)
lag(...; ta_args(opt)...)
...end
and the functionta_args can be implemented as a macro.
Add a
TimeType
argument to all the indicators that produces a scalar (or boolean) result.For example, the
sma
method would look like this:And it would function like this:
The text was updated successfully, but these errors were encountered: