Support Board
Date/Time: Sat, 10 May 2025 17:38:43 +0000
Post From: Subgraph setting different from specified in my codes
[2016-02-10 01:33:41] |
User972044 - Posts: 154 |
Hi there, Now that I have had a chance to test the codes for my custom study. I am glad to report that they are working thanks to your help however I noticed that the subgraph output for the chart are not taking the setting that I specified in my codes. For example, I specified the primary color for the the first and second line to be blue and magenta respectively but when I added my custom study, the subgraph plot lines still showed up as red and blue, totally not what I specified in my codes. Also the I specified the line width to be "3" for the lines but in the settings, they still showed up as "1" and I had to manually set them to my desired line width. And I have also specified specific names for each subgraph line but they were not reflected in the chart at all. Specifically my codes are as follows: sc.Subgraph[0].Name = "Average"; sc.Subgraph[0].PrimaryColor = RGB(0, 0, 255); //Blue sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[0].LineWidth = 3; sc.Subgraph[1].Name = "Smoothed"; sc.Subgraph[1].PrimaryColor = RGB(255,0,255); //Magenta sc.Subgraph[1].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[1].LineWidth = 3; I specified them exactly as how they were shown in the sample studies .cpp files. Should I have done something wrong? Please help. Thanks in advance. Date Time Of Last Edit: 2016-02-10 01:34:07
|