protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.White), PlotStyle.Bar, "D"));
AutoScale = false;
Overlay = false;
CalculateOnBarClose = true;
}
// FormatPriceMarker method of a custom indicator
public override string FormatPriceMarker(double price)
{
// Formats price values to 1 decimal places
return price.ToString("N2");
}
if (Bars == null)
return;
if (High[0] > High[1])
{
DrawText("myDot"+CurrentBar, false, "·", -1, (High[0]*2) - High[1], 0, Color.Green, dotFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 10);
}
TX

Comment