• Calculates the market profile for an array of candles. Typically, you use 30m candles, but you can theoretically use any timeframe.

    Parameters

    • config: IMarketProfileBuilderConfig

      Configuration for how you want to construct the profile. The session (London / Frankfurt / New York), and the tick size & multiplier.

    Returns IMarketProfile[]

    List of generated Market Profiles.

    Each market profile includes:

    • Value Area: The range of prices where a significant portion of time was spent.
    • Initial Balance: The price range established during the first hour of trading.

    Example

    // Assuming 'candles' is an array of ICandle objects representing the price data
    // Create a volume profile with a specified tick size
    const marketProfile: IMarketProfile = MarketProfile.build({ candles, tickSize: 0.1, tickMultiplier: 100, pricePrecision: 2, period: MARKET_PROFILE_PERIODS.DAILY, timezone: 'Europe/London' });

Generated using TypeDoc