Support Board
Date/Time: Tue, 04 Feb 2025 09:56:29 +0000
Post From: Plot All Time High / Low
[2020-01-10 10:49:52] |
T44 - Posts: 363 |
Hello Ackin, Thanks for your help here, some of your studies look interesting. I see that unfortunately you do not provide source code. Would you consider doing so, perhaps as a paid option? I do not think that any serious trader is going to run third party code on a trading platform which could have the ability e.g. to enter / modify orders, without being able to see for themselves what the code does before installing it. If you're asking people to trust you to install software which has direct access to their trading platform, what accountability have you put in place to justify that trust? Andreas, I'm running something similar to: s_ACSOpenChartParameters OpenChartParameters; OpenChartParameters.PriorChartNumber = ChartNumber; OpenChartParameters.ChartDataType = DAILY_DATA; OpenChartParameters.Symbol = sc.GetRealTimeSymbol(); OpenChartParameters.DaysToLoad = 5040; //approx 20 years OpenChartParameters.ContinuousFuturesContractOption = CFCO_DATE_RULE_ROLLOVER_BACK_ADJUSTED; OpenChartParameters.HideNewChart = 1; //we don't display the chart just reference its data ChartNumber = sc.OpenChartOrGetChartReference(OpenChartParameters); if (ChartNumber != 0) { SCGraphData ReferenceChartData; // Get the arrays from the reference chart sc.GetChartBaseData(ChartNumber, ReferenceChartData); if (ReferenceChartData[SC_LOW].GetArraySize() == 0) return; // The array is empty int ArraySize = 0; int LastIndex = sc.ArraySize - 1; ArraySize = sc.GetNearestMatchForSCDateTime(ChartNumber, CurrentDateTime); ArraySize = ArraySize-1; float ATH; for (int j = 0; j < ArraySize+1; j++) { if (ReferenceChartData[SC_HIGH][j] > ATH) ATH=ReferenceChartData[SC_HIGH][j]; } Date Time Of Last Edit: 2020-01-10 10:53:47
|