UNPKG

indicatorts

Version:

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

16 lines (15 loc) 687 B
import { VWAPConfig } from '../../indicator/volume/volumeWeightedAveragePrice'; import { Action } from '../action'; import { Asset } from '../asset'; /** * Volume weighted average price strategy uses the values that are generated * by the Volume Weighted Average Price (VWAP) indicator function to provide * a BUY action when the closing is below the VWAP, and a SELL action when * the closing is below the VWAP, a HOLD action otherwise. * * @param asset asset object. * @param config configuration. * @returns strategy actions. */ export declare function vwapStrategy(asset: Asset, config?: VWAPConfig): Action[]; export { vwapStrategy as volumeWeightedAveragePriceStrategy };