UNPKG

canvas-trading

Version:
23 lines (22 loc) 869 B
import { MountedIndicatorType, IndicatorValue, Indicators, AssignedTrade } from '../types'; export declare class MountedIndicator { type: MountedIndicatorType; value: IndicatorValue; yPos: number; constructor(type: MountedIndicatorType, value: IndicatorValue, yPos: number); } export declare class MountedTrade { type: 'trade'; tradeType: 'long' | 'short'; profitable: boolean; yPos: number; constructor(tradeType: 'long' | 'short', profitable: boolean, yPos: number); } export declare class CandleMountPoints { above: (MountedIndicator | MountedTrade | null)[]; below: (MountedIndicator | MountedTrade | null)[]; constructor(candleWidth: number, candleIndicators: Indicators, trades: AssignedTrade[], low: number, high: number, above: boolean); private mountIndicators; private mountUp; private mountDown; }