Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to draw text on each tick

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to draw text on each tick

    dear nt
    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);
    }

    #2
    sorry
    tag problem

    Comment


      #3
      Hello ahmedallam,

      Thanks for your posts and welcome to the forum!

      Correct, each draw object must be uniquely named.

      Comment


        #4
        thanks alot

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        345 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X