i´m trying to get an indicator working, that shows me the Range of the completed candles and of the current developing candle as a text above the high of each candle.
is this possible ?
So far i have:
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
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.
double netChange = Math.Round(High[0] - Low[0],10)*100;
DrawText("CurrentBar", netChange.ToString(), 0, High[0] + (TickSize *10), Color.Red);
It would be great if you could give me a hint how i get further with this project.
Thank You !

Comment