UNPKG

vases-indicatorts

Version:

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

22 lines (21 loc) 760 B
import { NVIConfig } from '../../indicator/volume/negativeVolumeIndex'; import { Action } from '../action'; import { Asset } from '../asset'; /** * The negative volume index strategy uses the nvi values that are generated by * the Negative Volume Index (NVI) indicator function to provide a BUY action * when nvi is less than its 255-period EMA, and a SELL action when it is * greather than its 255-period EMA, otherwise a HOLD action. * * @param asset asset object. * @param config configuration. * @returns strategy actions. */ export declare function nviStrategy(asset: Asset, config?: NVIConfig): { actions: Action[]; result: { nvi: number[]; ema: number[]; }; }; export { nviStrategy as negativeVolumeIndexStrategy };