Login Page - Create Account

Support Board


Date/Time: Thu, 19 Sep 2024 01:47:30 +0000



Post From: Data Error using GetHighest with multiple timeframes

[2014-06-26 09:44:19]
Joe Hobart - Posts: 89
when i use OpenChartOrGetChartReference, i only have the option of DAILY and INTRADAY data bars. There is IntradayBarPeriodType for setting intraday bars, but I was not able to locate documentation on how to load a historical weekly/quarterly/yearly bar chart programmatically. How do i specify quarterly bars for a programmatically opened chart? I know i could do (365/4) day intraday chart, but i want the integrity of the historical server to ensure correct dates. My hope was to be able to programmatically open a weekly or quarterly bar chart for reference from an intraday chart, such as drawing the last quarterly high.


enum ChartDataTypeEnum
{ NO_DATA_TYPE = 0
, DAILY_DATA = 1
, INTRADAY_DATA = 2
};

OpenChartParameters;
  OpenChartParameters.PriorChartNumber = 0;
  OpenChartParameters.ChartDataType = WEEKLY_DATA; //This is what i *thought* would be there
  OpenChartParameters.Symbol = sc.GetRealTimeSymbol();
  OpenChartParameters.DaysToLoad = 360;
  sc.PersistVars->i11 = sc.OpenChartOrGetChartReference(OpenChartParameters);


Date Time Of Last Edit: 2014-06-26 09:48:58