dashdot....trendline

Questions about MultiCharts .NET and user contributed studies.
shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

dashdot....trendline

Postby shivax » 08 Aug 2014

hi,

HERE I DRAW TRENDLINE

Code: Select all

bottom.Value = new ChartPoint(MT_RIB_DATATIME_MAX.Value,MT_RIB_MAX);
top.Value = new ChartPoint(MT_RIB_DATATIME_MAX.Value,MT_RIB_MIN);
Tl10.Value=DrwTrendLine.Create(bottom.Value, top.Value);


if i want change color to trendline i write :

Code: Select all

Tl10.Value.Color=Color.Red;
and if i want to change type of line ...i don't know

Code: Select all

Tl10.Value.Style= ?????
Can someone help me ? thanks

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: dashdot....trendline

Postby Henry MultiСharts » 08 Aug 2014

Hello shivax,

Help file for ITrendLineObject.Style Property says:
Get/set property for TrendLine style. ToolSolid = 1, ToolDashed = 2, ToolDotted = 3, ToolDashed2 = 4, ToolDashed3 = 5.

disc
Posts: 1
Joined: 25 Aug 2013

Re: dashdot....trendline

Postby disc » 18 Dec 2015

Tl10.Value.Style= 2;

Error message:
Cannot implicitly convert type 'int' to 'PowerLanguage.ETLStyle'. An explicit conversion exists (are you missing a cast?)

Can someone provide sample ?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: dashdot....trendline

Postby JoshM » 19 Dec 2015



Return to “MultiCharts .NET”