indicatorts
Version:
Stock technical indicators and strategies in TypeScript for browser and server programs.
16 lines (15 loc) • 675 B
TypeScript
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): Action[];
export { nviStrategy as negativeVolumeIndexStrategy };