Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

access name of an indicator to print on chart

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

    access name of an indicator to print on chart

    Hi,

    Can I access the name of an indicator to print it from that indicator somewhere on the chart?

    Thanks

    Thomas

    #2
    Hi Thomas, sure you could for example just use this.Name to access the script name and then for example show via DrawTextFixed in the chart.

    Comment


      #3
      Hi Bertrand,

      Many thanks for that, but the problem is, that I've deleted all label names to have a clean chart.
      So, nothing showing up .
      Is there another way?

      Thanks

      Thomas

      Code:
              protected override void OnStartUp()
                  {if (!showLast200) DrawTextFixed("showLast200", this.Name + " showLast200 off", TextPosition.TopLeft);}

      Comment


        #4
        Wouldn't it be easier then to custom format the label via an overriden ToString()?



        You could also supply your custom string text of course to use in the DrawTextFixed.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        595 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 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
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        554 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X