Qt-> in Data_Template in ADK

I am trying to write my own .dll to get data. I'm reviewing the samples but can't see where the varable qt is coming from. I'm assuming it's a pointer (due to the postfix ->), but I cannot find it elsewhere. Please go easy, I've only got 1 week of, <clears throat, 'ahem'> "experience" in C++.

while (fgets(line, sizeof(line), fh) && (iLines DateTime.Date = 0; // make sure that date structure is intialized with zero
qt->DateTime.PackDate.Minute = timenum % 100;
qt->DateTime.PackDate.Hour = timenum / 100;
qt->DateTime.PackDate.Year = 2000 + datenum / 10000;
qt->DateTime.PackDate.Month = (datenum / 100) % 100;
qt->DateTime.PackDate.Day = datenum % 100;

// now OHLC price fields
qt->Open = (float)atof(strtok(NULL, ","));
qt->High = (float)atof(strtok(NULL, ","));
qt->Low = (float)atof(strtok(NULL, ","));
qt->Price = (float)atof(strtok(NULL, ",")); // close price

// ... and Volume
qt->Volume = (float)atof(strtok(NULL, ",\n"));

Can I simply use my own variable as long as I am using the Quotation structure in the Plugin.h file?

qt variable was defined and assigned few lines earlier in line 153, see: Samples/ASCII/Plugin.cpp · master · AmiBroker / AmiBroker Development Kit · GitLab

1 Like