Open jalberty2018 opened 2 years ago
/// Normalized Average True Range /// - Parameter inputs: An array of Quotable elements. public func natr(_ inputs: [T], period n: Int) -> (Int, [Double]) { return Tulip.shared.call_indicator(name: "natr", inputs: HLC(inputs), options: [Double(n)]) }
Quotable
Remove next:
/// Normalized Average True Range /// - Parameter inputs: An array of Quotable elements. public func nvi(_ inputs: [T], period n: Int) -> (Int, [Double]) { return Tulip.shared.call_indicator(name: "natr", inputs: CV(inputs), options: [Double(n)]) }
Replace with:
/// Negative Volume Index /// - Parameter inputs: An array of Quotable elements. public func nvi(_ inputs: [T]) -> (Int, [Double]) { return Tulip.shared.call_indicator(name: "nvi", inputs: CV(inputs), options: []) }
/// Normalized Average True Range /// - Parameter inputs: An array of(_ inputs: [T], period n: Int) -> (Int, [Double]) {
return Tulip.shared.call_indicator(name: "natr", inputs: HLC(inputs), options: [Double(n)])
}
Quotable
elements. public func natrRemove next:
/// Normalized Average True Range /// - Parameter inputs: An array of(_ inputs: [T], period n: Int) -> (Int, [Double]) {
return Tulip.shared.call_indicator(name: "natr", inputs: CV(inputs), options: [Double(n)])
}
Quotable
elements. public func nviReplace with:
/// Negative Volume Index /// - Parameter inputs: An array of(_ inputs: [T]) -> (Int, [Double]) {
return Tulip.shared.call_indicator(name: "nvi", inputs: CV(inputs), options: [])
}
Quotable
elements. public func nvi