Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Update] Version Info #19

Closed
ixjb94 opened this issue Aug 18, 2024 · 0 comments
Closed

[Update] Version Info #19

ixjb94 opened this issue Aug 18, 2024 · 0 comments
Labels

Comments

@ixjb94
Copy link
Owner

ixjb94 commented Aug 18, 2024

Version: 1.2.3

General

Examples

  • Browser Example 1:
<script src="./node_modules/@ixjb94/indicators/dist/browser-indicators-extract.js"></script>
<script>
    const { ema, sma } = indicators
    ema([1,2,3,4,5,6], 3).then(d => console.log(d))
</script>

Or you can use one of these:

https://unpkg.com/@ixjb94/indicators@latest/dist/browser.js
https://unpkg.com/@ixjb94/indicators@latest/dist/browser-indicators.js
https://unpkg.com/@ixjb94/indicators@latest/dist/browser-indicators-sync.js
https://unpkg.com/@ixjb94/indicators@latest/dist/browser-indicators-extract.js
  • Browser Example 2:
<script src="./node_modules/@ixjb94/indicators/dist/core/extract/ema.js"></script>
<script>
    ema([1,2,3,4,5,6], 3).then(d => console.log(d))
</script>

Or you can use these:

https://unpkg.com/@ixjb94/indicators@latest/dist/core/extract/ema.js
https://unpkg.com/@ixjb94/indicators@latest/dist/core/extract/sma.js
...
available indicators: https://unpkg.com/browse/@ixjb94/indicators@latest/dist/core/extract/
  • Node Example 1:
const { Indicators } = require("@ixjb94/indicators")

const ta  = new Indicators()

const close = [1,2,3,4,5,6]

ta.ema(close, 3).then(d => console.log(d))

// OR
Test()
async function Test() {
    const result = await ta.ema(close, 3)
    console.log(result)
}
  • Node Example 2:
const { IndicatorsSync } = require("@ixjb94/indicators")

const tas = new IndicatorsSync()

const close = [1,2,3,4,5,6]

const result = tas.ema(close, 3)
console.log(result)
  • Node Example 3:
const { ema } = require("@ixjb94/indicators")

const close = [1,2,3,4,5,6]

ema(close, 3).then(d => console.log(d))

// OR
Test()
async function Test() {
    const result = await ema(close, 3)
    console.log(result)
}
@ixjb94 ixjb94 added the version label Aug 18, 2024
@ixjb94 ixjb94 closed this as completed Aug 18, 2024
@ixjb94 ixjb94 pinned this issue Aug 18, 2024
@ixjb94 ixjb94 changed the title Version 1.2.3 [Update] Version Info Aug 18, 2024
Repository owner locked and limited conversation to collaborators Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant