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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    22 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    280 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    279 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    130 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X