Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Printing out Indicator Name

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

    Printing out Indicator Name

    I start with this Print statement: Print(Time[0] + " " + "_rcsFM.Momentum[0] = " + _rcsFM.Momentum[0]);

    I want to add the code to print out the name of the indicator this Print statement is called from. So if this Print statement is in an indicator called "GoodSignal". I want the above Print statement to be modified to also print out the name. So the output would look like this:

    GoodSignal 12:01:00 PM _rcsFM.Momentum[0] = 1.5;

    Is there any way to print out that indicator name?

    #2
    Originally posted by rcsingleton View Post
    Is there any way to print out that indicator name?
    Sure, use the builtin "Name" property.

    It's common to it in code as "this.Name".

    Print("Name of indicator = " + this.Name);

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    131 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    111 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X