Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
femtotrader committed Feb 27, 2024
2 parents 4fcda9e + ba9c707 commit a066c49
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions docs/src/usage_more.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,22 @@ julia> SMA(ts; period = 3, default = :Open)
### Calculate `BB` (Bollinger bands)

```julia
julia> SMA(ts; period = 3)
500×1 TSFrame with DateTime Index
Index SMA
DateTime Float64?
──────────────────────────────────
2020-01-01T00:00:00 missing
2020-01-01T01:00:00 missing
2020-01-01T02:00:00 332.487
2020-01-01T03:00:00 334.23
2020-01-01T04:00:00 334.537
2020-01-21T15:00:00 352.087
2020-01-21T16:00:00 358.41
2020-01-21T17:00:00 361.733
2020-01-21T18:00:00 363.213
2020-01-21T19:00:00 362.377
julia> BB(ts; period = 3)
500×3 TSFrame with DateTime Index
Index BB_lower BB_central BB_upper
DateTime Float64? Float64? Float64?
────────────────────────────────────────────────────────────
2020-01-01T00:00:00 missing missing missing
2020-01-01T01:00:00 missing missing missing
2020-01-01T02:00:00 329.319 332.487 335.654
2020-01-01T03:00:00 327.617 334.23 340.843
2020-01-01T04:00:00 328.633 334.537 340.44
2020-01-21T15:00:00 340.813 352.087 363.36
2020-01-21T16:00:00 348.844 358.41 367.976
2020-01-21T17:00:00 357.434 361.733 366.033
2020-01-21T18:00:00 361.804 363.213 364.623
2020-01-21T19:00:00 360.92 362.377 363.833
```

### Calculate `ATR` (Average true range)
Expand Down Expand Up @@ -270,4 +270,4 @@ julia> Stoch(ts; period = 3)
2020-01-21T17:00:00 70.2795 87.2356
2020-01-21T18:00:00 67.5883 79.2893
2020-01-21T19:00:00 35.0649 57.6443
```
```

0 comments on commit a066c49

Please sign in to comment.