UNPKG

indicatorts

Version:

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

15 lines (14 loc) 578 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): Action[]; export { vwmaStrategy as volumeWeightedMovingAverageStrategy };