Skip to content

Commit

Permalink
Implement chart for easier Chart construction
Browse files Browse the repository at this point in the history
  • Loading branch information
g-gundam committed Jul 16, 2024
1 parent ce82cd1 commit 7acbfdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,9 @@ julia> golden_cross = chart(
```
"""
function chart(name, tf; indicators::Vector=[], visuals::Vector{Dict}=[])
function chart(name, tf; indicators::Vector=[], visuals::Vector=[])
df = DataFrame(df_fields(indicators))
ts = missing
candle = missing
return Chart(;name, tf, df, indicators, visuals, ts, candle)
end

0 comments on commit 7acbfdb

Please sign in to comment.