Oscillator level lines' default color
Oscillator level lines' default color
10 Feb 2019, 17:52
I want to specify the default colors and line styles to the oscillator level lines.
LevelAttribute provides only a function of specification of numeric values.
Is it possible to set default colors or styles?
Replies
Ogacha
13 Feb 2019, 08:47
RE:
There is no such feature at the moment for built in indicators. You can do this for custom indicators only.
Thank you for replying, Panagiotis.
I mean about a custom indicator.
It is possible to set numeric values (20, 50, 80) with LevelsAttribute. I want to know if it is possible to set a line color, style and thickness like OutputAttribute.
[Levels(20, 50, 80)] [Indicator(IsOverlay = false)] public class CustomIndicator : Indicator { [Output("Yellow Line", LineColor = "Yellow", LineStyle = LineStyle.Lines, Thickness = 1f)] public IndicatorDataSeries YellowLine { get; set; } …… }
@Ogacha
PanagiotisCharalampous
13 Feb 2019, 10:47
Hi Ogacha,
Yes it is. See an example below
[Output("Test Series", PlotType = PlotType.Histogram, Color = Colors.Green, LineStyle = LineStyle.Solid, Thickness = 2)] public IndicatorDataSeries TestSeries{ get; set; }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Feb 2019, 12:27
Hi Ogacha,
Thanks I understood now. Unfortunately this is not possible at the moment. You can only specify the level value at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 10:35
Hi Ogacha,
Thanks for posting in our forum. There is no such feature at the moment for built in indicators. You can do this for custom indicators only.
Best Regards,
Panagiotis
@PanagiotisCharalampous