DrwArrow color

Questions about MultiCharts .NET and user contributed studies.
joenetic
Posts: 30
Joined: 13 Jun 2013

DrwArrow color

Postby joenetic » 26 Jun 2023

I found this code has error message, Color is not supported, any idea ?

// Draw a purple arrow on the first data series
IArrowObject arrowData1 = DrwArrow.Create(
new ChartPoint(Bars.Time[1], Bars.High[1]), true);

arrowData1.Color = Color.Purple;

User avatar
Polly MultiCharts
Posts: 202
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 56 times

Re: DrwArrow color

Postby Polly MultiCharts » 07 Jul 2023

Hello joenetic,

We have checked the issue on our end in the latest version Version 14.0 Release 8 (Build 24675) and it is not reproduced, unfortunately.
Please note that
  • drawings can be created by the study on the chart only;
  • drawings are not created in Portfolio Trader and Scanner:
  • drawings cannot be created during optimization.
You can also try this code sample as an alternative:

Code: Select all

arrowData1.Color = System.Drawing.ColorTranslator.FromHtml("#FF800080");
If you’d like us to check the issue on our end please send us the following files to our support email:
  1. The workspace where the issue is reproduced.
  2. The simplified exported scripts with all dependent functions and dll files that are used on the workspace.
  3. Screenshot demonstrating the issue.
  4. MultiCharts Logs, collected via Feedback application, when the issue is reproduced:
Please select the options:
  • Attach a screenshot;
  • Attach log files…;
  • Snapshot of the current MC setup;
  • Open workspaces…;
  • Active indicators…;
  • Active signals…;
  • Upload collected data to help desk;
Uncheck other options and click Send.


Return to “MultiCharts .NET”