Code: Select all
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
using System.Collections.Generic;
namespace PowerLanguage.Indicator
{
public class Snippet_Indicator : IndicatorObject
{
public Snippet_Indicator(object _ctx) : base(_ctx) { }
private IPlotObject plot1, plot2, plot3, plot4, plot5, plot6, plot7, plot8, plot9, plot10;
protected override void Create()
{
plot1 = AddPlot(new PlotAttributes("plot1", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 0, EPlotStyle.Solid, true));
plot2 = AddPlot(new PlotAttributes("plot2", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 1, EPlotStyle.Solid, true));
plot3 = AddPlot(new PlotAttributes("plot3", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 2, EPlotStyle.Solid, true));
plot4 = AddPlot(new PlotAttributes("plot4", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 3, EPlotStyle.Solid, true));
plot5 = AddPlot(new PlotAttributes("plot5", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 4, EPlotStyle.Solid, true));
plot6 = AddPlot(new PlotAttributes("plot6", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 5, EPlotStyle.Solid, true));
plot7 = AddPlot(new PlotAttributes("plot7", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 6, EPlotStyle.Solid, true));
plot8 = AddPlot(new PlotAttributes("plot8", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 7, EPlotStyle.Solid, true));
plot9 = AddPlot(new PlotAttributes("plot9", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 8, EPlotStyle.Solid, true));
plot10 = AddPlot(new PlotAttributes("plot10", EPlotShapes.Point,
Color.ForestGreen, Color.Transparent, 9, EPlotStyle.Solid, true));
}
protected override void CalcBar() { }
}
}
The last 3 plots all have a line that not the thickest, despite this being specified in the `PlotAttributes` with the increasing value for plot lines (the values 7, 8, 9).
It seems that the value of 7 does not set the line to the thickest version, even though I believe it should do that. In other words, I cannot programmatically set the plot thickness to the highest value, while all the other thickness can be set.
I've searched the logs for the MC 9.0 beta versions, but could not find an entry for this.