trading-utils
Version:
A collection of helpful trading utility functions.
13 lines • 536 B
TypeScript
import { MACDDataPoint, TradingSuggestion } from '../types';
export interface MacdIndicator {
calculate(prices: number[]): TradingSuggestion;
}
export declare class MacdIndicatorImpl implements MacdIndicator {
calculate(prices: number[]): TradingSuggestion;
/**
* Calculates the MACD for the given dataset.
* @param prices The dataset which will be used for calculating the MACD.
*/
calculateMACDIndicator(prices: number[]): MACDDataPoint[];
}
//# sourceMappingURL=macdIndicator.d.ts.map