Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 20:36:21 +0000



Post From: How to Copy Chart Values for a DATE RANGE instead of just current crosshair.

[2023-07-13 07:21:05]
ElKimoBasha999 - Posts: 22
Hey John, so I tried to simply add the TPO study to my chart and then save the Intraday as Text and it doesn't show all the TPO values like it does in the Chart Tools when TPO is loaded up.

So what I am currently doing is I think I have to download like the last 3 years of Continoues Futures Contracts worth of data and then use an ASCIL script to FETCH the last 3 years of data?

Is my line of thinking correct here?

If so, what is the most efficient way to go about this, I know how to kind of code in ASCIL and I already figured out how to code to fetch certain values and over certain days:
const int DaysBack = 60;

and:
for (int i = 1; i <= DaysBack; i++)
{
// Fetch the profile information for each of the past 60 days
sc.GetStudyProfileInformation(TPOStudyID, i, StudyProfileInformation);

// Format the start date-time as a string
std::stringstream ss;
ss << StudyProfileInformation.m_StartDateTime.GetYear() << "-"
<< StudyProfileInformation.m_StartDateTime.GetMonth() << "-"
<< StudyProfileInformation.m_StartDateTime.GetDay() << " "
<< StudyProfileInformation.m_StartDateTime.GetHour() << ":"
<< StudyProfileInformation.m_StartDateTime.GetMinute() << ":"
<< StudyProfileInformation.m_StartDateTime.GetSecond();

Is there a way I can just put a DATE RANGE? instead of indexing back 60 days?