The images are the Indicators settings and chart when applying the indicator and when applying a saved template that includes the indicator.
#region Variable
private int lookback = 5; // Lookback period for reversal bar to break previous Hi/Lo to generate signal
private Color reversalUp = Color.Blue;
private Color reversalDown = Color.Red;
private Color reversalNeut = Color.Gray;
private Color reversalColor = Color.Empty;
#endregion
#region Initialize
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(new Plot(Color.Transparent, PlotStyle.Bar, "ReversalBars")); // Overlay the indicator and plot as transparent
PaintPriceMarkers = false;
Overlay = true;
ScaleJustification = ScaleJustification.Overlay; // Makes overlay of indicator overlap price panel w/o changing scale
}
// Set bar colors PlotColors[0][0] = Color.Transparent; // Don't plot the -1,1 values for Reversals if(Value[0] == -1) reversalColor = reversalDown; else if(Value[0] == 1) reversalColor = reversalUp; else reversalColor = reversalNeut; if(Open[0] < Close[0]) BarColor = Color.Transparent; else BarColor = reversalColor; CandleOutlineColor = reversalColor;

Comment