Skip to content
📊 Swift Technical Analysis library around tulip
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests
docs
tulipindicators-swift.xcodeproj
.gitignore
.jazzy.yaml
Changelog.md
LICENSE
Package.swift
README.md
tulipindicators-swift.podspec

README.md

tulipindicators-swift

License Carthage compatible Cocoapods

This swift package offers a technical analysis function by wrapping the tulipindicators C library

Installation

You can access the documentation here

Swift package manager

import PackageDescription

let package = Package(
    dependencies: [
        .package(url: "https://github.com/yageek/tulipindicators-swift.git", from: "1.0.0"),
    ]
)

Carthage

github "yageek/tulipindicators-swift" ~> 1.0.0

Cocoapods

pod 'tulipindicators-swift' ~> 1.0.0

Usage

import tulipindicators

let inputs: [Double] = [81.59, 81.06, 82.87, 83.00, 83.61, 83.15, 82.84, 83.99, 84.55, 84.36, 85.53, 86.54, 86.89, 87.77, 87.29]
let (beginIdx, outputs) = msw(inputs, period: 5)

print("Relative Input offset: \(beginIdx)")
print("MSW values: \(outputs)")
You can’t perform that action at this time.