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

Removing parameter texts from chart of strategy

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

    Removing parameter texts from chart of strategy

    Hi, I am using a custom scripted strategy where I have quite a few parameters and when I use the strategy, it's parameter details text take lots of space on the chart. Currently i have using below

    public override string DisplayName
    {
    get { return " Strategy"; } // to prevent showing all parameters on the chart
    }

    but it does not stop text display of all the parameters, please see the screenshot. any advice will be helpful.
    Attached Files

    #2
    Hello asmmbillah,

    I just wanted to check, have you removed and re applied a new instance of the script? The code you have used seems to be correct, that would replace the string in the chart with "Strategy".

    We have a sample of removing the display name from an indicator which is the same process, you can compare what you have made with the example here: https://ninjatrader.com/support/help...formatting.htm

    If you are still having trouble after this post, I would suggest to make a simple test script which shows the problem and then attach that so we can review the code in total.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi, Thanks for your reply. it is showing Strategy. But I wanted to get of the parameters like EMAs and its values and other indicator parameters you can see in the screenshot. Thanks.

      Comment


        #4
        Hello asmmbillah,

        If the indicators are manually added, you would need to open the indicators dialog in the chart and edit each indicators "Label" to be blank.

        Are you otherwise adding the shown indicators using the strategy by using AddChartIndicator()?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          yes, these indicators are added using the strategy.

          Comment


            #6
            Hello asmmbillah,

            In that case I would suggest to look at the SampleMACrossOver and how the indicators are stored as variables in that script, you need to make sure your script is set up the same way for your indicators. After you have the variable for your indicator you can set its name to a blank string. Here is an example using the SampleMA:

            Code:
            AddChartIndicator(smaSlow);
            AddChartIndicator(smaFast);
            smaSlow.Name = "";
            smaFast.Name = "";
            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              thanks, that resolves the issue.

              Comment


                #8
                @asmmbillah

                Take a look at my post here https://ninjatrader.com/support/foru...78-hide-labels

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by gravdigaz6, Today, 11:40 PM
                0 responses
                4 views
                0 likes
                Last Post gravdigaz6  
                Started by MarianApalaghiei, Today, 10:49 PM
                3 responses
                9 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by XXtrader, Today, 11:30 PM
                0 responses
                4 views
                0 likes
                Last Post XXtrader  
                Started by love2code2trade, Yesterday, 01:45 PM
                4 responses
                28 views
                0 likes
                Last Post love2code2trade  
                Started by funk10101, Today, 09:43 PM
                0 responses
                9 views
                0 likes
                Last Post funk10101  
                Working...
                X