Chartbreaker
    Preparing search index...

    Type Alias TradeTrackerContent

    type TradeTrackerContent = {
        avgHoldingPeriodInSeconds: number;
        avgProfitLossAbs?: Amount;
        avgTradedVolume?: Amount;
        byAssetClass: { assetClassId: number | null; profitLossAbs: Amount }[];
        byDate: {
            count: number;
            dateString: string;
            profitLossAbs: Amount;
            tradedVolume: Amount;
        }[];
        byHourOfDay: {
            hourOfDay: number;
            profitLossAbs: Amount;
            tradedVolume: Amount;
        }[];
        byMonth: { month: string; profitLossAbs: Amount; tradedVolume: Amount }[];
        byWeekday: { profitLossAbs: Amount; tradedVolume: Amount; weekday: number }[];
        dateRange: DateRange;
        flops: FlopTradeItem[];
        hitRate?: number;
        longTradesCountLosses: number;
        longTradesCountProfits: number;
        profitFactor?: number;
        profitLossAbs?: Amount;
        profitLossIsAfterFees?: boolean;
        shortTradesCountLosses: number;
        shortTradesCountProfits: number;
        topFlops: TopFlopTradeItem[];
        tops: TopTradeItem[];
        totalFees?: Amount;
        tradeCount: number;
        tradeCountLosses: number;
        tradeCountProfits: number;
    }
    Index

    Properties

    avgHoldingPeriodInSeconds: number
    avgProfitLossAbs?: Amount
    avgTradedVolume?: Amount
    byAssetClass: { assetClassId: number | null; profitLossAbs: Amount }[]

    The P/L per assetClass. If an assetClass is unknown, assetClassId will be null.

    byDate: {
        count: number;
        dateString: string;
        profitLossAbs: Amount;
        tradedVolume: Amount;
    }[]
    byHourOfDay: { hourOfDay: number; profitLossAbs: Amount; tradedVolume: Amount }[]

    Type Declaration

    • hourOfDay: number

      The "hour of day bucket" in local time, so 11:16 would have the bucket 11.

    • profitLossAbs: Amount
    • tradedVolume: Amount
    byMonth: { month: string; profitLossAbs: Amount; tradedVolume: Amount }[]

    Type Declaration

    • month: string

      The "month bucket", in format YYYY-MM

    • profitLossAbs: Amount
    • tradedVolume: Amount
    byWeekday: { profitLossAbs: Amount; tradedVolume: Amount; weekday: number }[]

    Type Declaration

    • profitLossAbs: Amount
    • tradedVolume: Amount
    • weekday: number

      The "weekday bucket", like JavaScript Date getDay(), so 0 means Sunday

    dateRange: DateRange
    flops: FlopTradeItem[]

    A selection of flop items (= the worst 6 trades)

    hitRate?: number
    longTradesCountLosses: number
    longTradesCountProfits: number
    profitFactor?: number
    profitLossAbs?: Amount
    profitLossIsAfterFees?: boolean

    If this is true, fee data is factored into the profit loss values of the data.

    shortTradesCountLosses: number
    shortTradesCountProfits: number
    topFlops: TopFlopTradeItem[]

    A selection of top&flop trades (= the best 3 trades + the worst 3 trades)

    tops: TopTradeItem[]

    A selection of top items (= the best 6 trades)

    totalFees?: Amount
    tradeCount: number
    tradeCountLosses: number
    tradeCountProfits: number