trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
15 lines (14 loc) • 550 B
TypeScript
import { TrendIndicatorSeries } from '../../base/Indicator.js';
export type PPOConfig = {
fastPeriod?: number;
slowPeriod?: number;
};
export declare class PPO extends TrendIndicatorSeries {
#private;
readonly fastPeriod: number;
readonly slowPeriod: number;
constructor({ fastPeriod, slowPeriod }?: PPOConfig);
getRequiredInputs(): number;
update(price: number, replace: boolean): number | null;
protected calculateSignalState(result: number | null | undefined): "BEARISH" | "BULLISH" | "SIDEWAYS" | "UNKNOWN";
}