Support Board
Date/Time: Mon, 19 May 2025 16:13:04 +0000
Post From: Accesing Prive Color Value
[2024-02-06 08:22:40] |
User431178 - Posts: 682 |
Example 2 with GetStudyDataColorArrayFromChartUsingID also compiled - likely with similar results (will return default values). If the DataColor array is used in the referenced study, it will return the colors that have been set. Returning the default value would render the function completely pointless, there are already other functions for that purpose. This function is rather hard to use in proper context... What is hard about it? You read the color value at an index and compare it do a set of color values to ascertain which you have. My take on this problem is like follow (if I remember correctly from the distant past): most C++ classes (provide objects implementations) have set (to set a value or reference) and get (to get a value or reference) member functions. This is not going to work here because I'm not looking for a value that I already have set or for a system default. I'm looking for a value that has been set by a different object (study - MQ Trender Pro) and even though I can see its effect (color) - I do not have a direct reference to this object (the study does not provide any meaningful output reference is spreadsheet values), thus this may never work, unless there is an implementation for accessing a color value directly from the graph or from the screen. This should be possible because C+++ has a lot of power if in good hands (not mine yet). You don't need to worry about any of that, the function is providing you with a reference to the required data. The platform has ownership of all the objects, the fact that you don't own the object in your study is irrelevant. Date Time Of Last Edit: 2024-02-06 08:24:11
|