i m trying to make indicator which draw letter and count number for each tick in nzdusd historical bid tick chart imported for last 14 years
but it just draw text on last tick
this is the code
protected override void Initialize()
{
//nellymnumberingdataseries = new DataSeries(this); // this refers to the indicator/strategy itself
// and syncs the DataSeries object to historical data bars
nellymnumberingstringseries= new StringSeries(this); // "this" refers to the indicator, or strategy
// itself. This syncs the StringSeries object to historical data bars
//Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
//DrawOnPricePanel = true ;//write on chart directly
Overlay = true;//plot on chart directly
CalculateOnBarClose = false;
}
/// <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
nellymnumberingstringseries.Set("m" + Count.ToString());
DrawText("tag", nellymnumberingstringseries[0], 0,Close[0]+0.0001, Color.Blue);
}
Comment