Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple Key

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

    Simple Key

    Hi,

    Are there any example scripts where the a key can be placed on the left hand side of an indicator describing the line.

    I have 4 colored lines on my indicator, and I forget what they represent, so a key on the indicator would be great

    Thanks

    tinkerz

    #2
    Hello,

    I'm not aware of any existing examples that would do this.

    A very simple approach would be by using the DrawTextFixed() and using a different color text to match the indicator color.

    If you want something more involved, you can create your own custom plot to do so. You can take a look at how to create your own custom plot by going to Tools--> Edit NinjaScript--> Indicators--> locate the CustomPlotSample and select "OK.

    From this script, you will want to look under the #region Miscellaneous area and the public over ride void Plot() method.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by timmbbo, Today, 08:59 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by KennyK, 05-29-2017, 02:02 AM
    2 responses
    1,280 views
    0 likes
    Last Post marcus2300  
    Started by fernandobr, Today, 09:11 AM
    0 responses
    2 views
    0 likes
    Last Post fernandobr  
    Started by itrader46, Today, 09:04 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by bmartz, 03-12-2024, 06:12 AM
    5 responses
    33 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X