Step Line in Indicators

Questions about MultiCharts .NET and user contributed studies.
ascales
Posts: 36
Joined: 06 Jan 2017
Has thanked: 4 times
Been thanked: 2 times

Step Line in Indicators

Postby ascales » 18 May 2020

Hi there,

I would like to create a version of the price channel indicator that uses a 'Step Line' (horizontal connecting lines) instead of a regular line (point a-to-b). There doesn't seem to be a style type for this, only a 'Line' type.

Any ideas, suggestions? Is there a Step Line type similar to the one in Trading View?

Existing code:

Code: Select all

private IPlotObject Plot1; Plot1 =AddPlot(new PlotAttributes("UpperBand", 0, Color.Yellow, Color.Empty, 0, 0, true)); Plot1.Set(displace, m_upperband.Value);
Thanks a lot.

A

User avatar
Vlada MultiCharts
Posts: 293
Joined: 22 Apr 2020
Has thanked: 8 times
Been thanked: 76 times

Re: Step Line in Indicators

Postby Vlada MultiCharts » 08 Jul 2020

Hello,

If we understand your request correctly, you'd like to have an indicator similar to the one depicted on the screenshot attached.
Step Line Example_MultiCharts.png
(5.45 KiB) Not downloaded yet

This is not a style of connecting lines. If you'd like to display horizontal levels of the values, this should be implemented in the logic of the indicator's code.

ascales
Posts: 36
Joined: 06 Jan 2017
Has thanked: 4 times
Been thanked: 2 times

Re: Step Line in Indicators

Postby ascales » 08 Jul 2020

Thanks Vlada,

In TradingView it is a style property of the line: for example 'line' or 'step line' - this is much easier.

Best,
A


Return to “MultiCharts .NET”