Hi,
I'm having trouble plotting an indicator of my own and I think it's because I don't understand the plot logic. I want to plot this "Slope(HMA(Fast), 2, 1)/TickSize" and I can't seem to get a line to be drawn. Can anyone help with how to get it to plot?
I looked at the support guide and below is an example from it for AddPlot(). I have two questions. From how this is written, how does "AddPlot(Brushes.Blue, "PlotA"); " know to plot the "Values[0][0] = Median[0]; " Why is that the one it will plot?
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "Examples Indicator";
// Add three plots and associated Series<double> objects
AddPlot(Brushes.Blue, "PlotA"); // Defines the plot for Values[0]
AddPlot(Brushes.Red, "PlotB"); // Defines the plot for Values[1]
AddPlot(Brushes.Green, "PlotC"); // Defines the plot for Values[2]
}
}
protected override void OnBarUpdate()
{
Values[0][0] = Median[0]; // Blue "Plot A"
Values[1][0] = Low[0]; // Red "Plot B"
Values[2][0] = High[0]; // Green "Plot C"
}
Comment