Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 10:49:41 +0000



Post From: Incorrect chart opened using study (IBPT_PRICE_CHANGES_PER_BAR opens IBPT_DAYS_MINS_SECS)

[2015-09-21 12:55:43]
wat - Posts: 67
Following code (tested on CL-201510-NYMEX) opens intraday chart with 1 second bar length instead of 1 PriceChanges chart.

    s_ACSOpenChartParameters chartParameters;
    chartParameters.ChartDataType = INTRADAY_DATA;
    chartParameters.Symbol = sc.GetRealTimeSymbol();
    chartParameters.IntradayBarPeriodType = IBPT_PRICE_CHANGES_PER_BAR;
    chartParameters.IntradayBarPeriodLength = 1;
    chartParameters.DaysToLoad = 3;

    int chartNumber = sc.OpenChartOrGetChartReference(chartParameters);

Can you help me with this bug? I am not sure where the problem might be.

Thanks.