Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Indicator shows only the value

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

    Indicator shows only the value

    Is it possible to plot only the value of an indicator on the chart?

    #2
    Hello Ironman9973,

    Thank you for writing in. If you only want to see the value of an indicator plotted on the chart (no bars) you can use the following steps:

    1) Open up the Data Series Dialog on your chart by pressing CTRL + F on your keyboard
    2) Set all the parameters for your chosen ChartStyle to "Transparent".

    If you are using Candlesticks you would take the following steps:

    2a) Expand the "Candle outline" section and set the "Color" to "Transparent".
    2b) Set the "Color for down bars" to "Transparent".
    2c) Set the "Color for up bars" to "Transparent".
    2d) Expand the "Wick" section and set the "Color" to "Transparent".
    2e) Press OK

    I have attached a screenshot showing what this looks like below.

    3) Add your indicator(s) to the chart.

    Please let me know if I may be of further assistance.
    Attached Files
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Thank you for your answer. But I want to see the bars also. I dont want to see the indicator line. I want to see only the value of an indicator with the bars. Preferable the value in the corner somewhere.

      Comment


        #4
        Hello Ironman9973,

        Thank you for clarifying. To accomplish this you can open the DataBox to view the value. It will show you the value of all items on the chart including your indicator at whatever point your cursor is over. Alternatively, you can reprogram your indicator to print its value by adding the following code to the bottom of the OnBarUpdate() method:
        Code:
        DrawTextFixed("Value", Value[0].ToString(), TextPosition.TopRight);
        For more information on the DrawTextFixed method, please see our help guide here: http://ninjatrader.com/support/helpG...=drawtextfixed

        And then setting the plot colors to transparent (You can do this either in the indicators dialog box or in the indicator's code).
        To accomplish this programatically you would change all of the indicators plots to transparent like the following:
        Code:
        Add(new Plot([B]Color.Transparent[/B], "SMA"));
        As an example I have done this to the SMA indicator and provided the updated SMA indicator and screenshots below for your convenience.

        Please let me know if I may be of further assistance.
        Attached Files
        Michael M.NinjaTrader Quality Assurance

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PaulMohn, Today, 03:49 AM
        0 responses
        3 views
        0 likes
        Last Post PaulMohn  
        Started by inanazsocial, Today, 01:15 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        10 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        2 views
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Working...
        X