I have a simple idea for indicator but I really bad at c#. I don't understand how to plot dots. Pls help.
/// <summary>
/// Wick
/// </summary>
[Description("Wick")]
public class Wick : Indicator
{
#region Variables
// Wizard generated variables
private int wick_size = 4; // Default setting for Wick_size
// User defined variables (add any user defined variables below)
#endregion
/// <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.Blue, PlotStyle.Dot, "Dotz"));
Overlay = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
{
if ((High[0] - Open[0] == wick_size * TickSize) && (Open[0] > Close[0]))
Plots[0].PlotStyle = PlotStyle.Dot;
return;
if ((Open[0] - Low[0] == wick_size * TickSize) && (Open[0] < Close[0]))
Plots[0].PlotStyle = PlotStyle.Dot;
return;
{
}
}
Comment