Chartbreaker
    Preparing search index...

    Type Alias TradeTrackerContent

    type TradeTrackerContent = {
        avgHoldingPeriodInSeconds: number;
        avgProfitLossAbs?: Amount;
        avgTradedVolume?: Amount;
        byAssetClass: { assetClassId: number | null; profitLossAbs: Amount }[];
        byDate: { dateString: string; profitLossAbs: Amount; tradedVolume: Amount }[];
        byHourOfDay: {
            hourOfDay: number;
            profitLossAbs: Amount;
            tradedVolume: Amount;
        }[];
        byWeekday: { profitLossAbs: Amount; tradedVolume: Amount; weekday: number }[];
        dateRange: DateRange;
        hitRate?: number;
        longTradesCountLosses: number;
        longTradesCountProfits: number;
        profitFactor?: number;
        profitLossAbs?: Amount;
        profitLossIsAfterFees?: boolean;
        shortTradesCountLosses: number;
        shortTradesCountProfits: number;
        topFlops: TopFlopTradeItem[];
        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: { 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
    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
    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[]
    totalFees?: Amount
    tradeCount: number
    tradeCountLosses: number
    tradeCountProfits: number