UNPKG

vases-indicatorts

Version:

Stock technical indicators and strategies in TypeScript for browser and server programs.

21 lines (20 loc) 664 B
import { Asset } from '../asset'; import { Action } from '../action'; import { VWMAConfig } from '../../indicator/trend/volumeWeightedMovingAverage'; /** * The vwmaStrategy function uses SMA and VWMA indicators to provide * a BUY action when VWMA is above SMA, and a SELL signal when VWMA * is below SMA, a HOLD signal otherwse. * * @param asset asset object. * @param config configuration. * @returns strategy actions. */ export declare function vwmaStrategy(asset: Asset, config?: VWMAConfig): { actions: Action[]; result: { sma: number[]; vwma: number[]; }; }; export { vwmaStrategy as volumeWeightedMovingAverageStrategy };