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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        31 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, Yesterday, 02:41 AM
        0 responses
        14 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        23 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        34 views
        0 likes
        Last Post CarlTrading  
        Working...
        X