//This is how I add them in the `OnStateChange` inside of `State.SetDefaults`
AddPlot(Brushes.OrangeRed);
AddPlot(Brushes.OrangeRed);
Then depending on some conditions I change the color as :
if (foo)
{
PlotBrushes[0][0] = Brushes.Lime;
PlotBrushes[1][0] = Brushes.Lime;
}
else if (bar)
{
PlotBrushes[0][0] = Brushes.Red;
PlotBrushes[1][0] = Brushes.Red;
}
The problem now I'm having is :
First : I want the first one be solid and the second one be dotted but I don't know how can I change it, I've been reading around this forum and what I've found is to add the plot as :
AddPlot(new Stroke(Brushes.OrangeRed, DashStyleHelper.Solid, 2), PlotStyle.Line, "Plot1");
AddPlot(new Stroke(Brushes.OrangeRed, DashStyleHelper.Solid, 2), PlotStyle.Line, "Plot2");
Then I can play with "Plot1" and "Plot2" so I can update just the `Brushes.OrangeRed` to my desired color, but don't find the way to do it.
Second: I'd like to know is if, is it possible to get the plot1 position to draw an arrow just above this "Plot1" since I'm using this to draw the arrow
Draw.ArrowUp(this, "Up " + CurrentBar, false, 0, Low[0] - 2 * TickSize, Brushes.White);
I want to draw this ArrowUp below the Plot (I need to check but it should be the dotted one.

Comment