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

text in the line

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

    text in the line

    hi, is possible to put text into the line? (like on the picture)

    #2
    Hello Cassius Romarius,

    Thanks for your post.

    Yes, it is possible through custom programming in Ninjascript.

    There may already be something that can help here.

    If those lines are manually created using the drawing tools then you can use an add-on that provides "labeled" lines where you can input text to display above or below the line.

    If those lines are actually plots generated by an indicator, then you can use an add-on that will automatically label the plots with their plot names.

    I will link both of these below.


    These indicator are publicly available on our NinjaTrader Ecosystem website:

    https://ninjatraderecosystem.com/use...-drawing-tool/https://ninjatraderecosystem.com/use.../addplotnames/

    Here is a basic guideline of how to Import NinjaScripts.

    To import NinjaScripts you will need the original .zip file.

    To Import
    1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
    2. From the Control Center window select the menu Tools>Import>Ninjascript add-on..
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.

    Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

    In the case of the labeled lines, these will be added to your Drawinghg menu in each chart (under the pencil icon).

    In the case of thee AddPlotNames, you would add the indicator to the chart and it will automatically go through all plots in the price panel and display their assigned plot names (no means to change the plot names).

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Perfect! Thank you. One more question: how do I make the colors and the font size setting permanent?
      Last edited by Cassius Romarius; 10-26-2020, 11:44 AM.

      Comment


        #4
        Hello Cassius Romarius,

        Thanks for your reply.

        I would be glad to advise but I need to know which one you are working with of the two downloads I suggested.

        Paul H.NinjaTrader Customer Service

        Comment


          #5
          this one: https://ninjatraderecosystem.com/use...-drawing-tool/

          Comment


            #6
            Hello Cassius Romarius,

            Here is a short video that shows how to change what is displayed: https://paul-ninjatrader.tinytake.co...Ml8xMTUyMDkxMg

            You can create any number of "templates" where you define the font, size, text and color and then "load" them through the template selection.
            Another reference: https://ninjatrader.com/support/help...bjectTemplates

            Paul H.NinjaTrader Customer Service

            Comment


              #7
              It works great, thanks, except for one detail - it doesn't show the price and text at the same time.

              Comment


                #8
                Hello Cassius Romarius,
                Append Price is not compatible with Global Objects, so you can have a new copy in other chart for this purpose. You can simply copy the lines across the charts.

                Comment


                  #9
                  Hello Cassius Romarius,

                  Thanks for your reply.

                  When I create a labeled line and add text to it and set it to global, I see the line at the same price and location on the other charts and it has both text and price. Note: I did not use a template.

                  Can you provide a step by step process of what you are doing so I can test on my end?
                  Paul H.NinjaTrader Customer Service

                  Comment


                    #10
                    Hello Paul,
                    I tried it earlier, draw line on any chart, go to line properties by double click, & in attach to select all charts. Now you can open another chart in same workspace so the line should be there. Here you will notice price will not be appended as its not compatible.

                    Comment


                      #11
                      Hello s.kinra,

                      Thanks for your reply.

                      Hopefully, we are not confusing the OP.

                      Here is a short video of what I see: https://Paul-ninjaTrader.tinytake.co...NF8xNTA4MDAwMg
                      Paul H.NinjaTrader Customer Service

                      Comment


                        #12
                        Hello Paul,
                        For me its not working as shown in your video. I also downloaded again right now but still its not working. Please find attached the snapshot for reference. I am also attaching the indicator so we're on same page.
                        Attached Files

                        Comment


                          #13
                          Hello Cassius Romarius,
                          I've now fixed this issue & now you can append price in global objects as well. Here you get the modified version.
                          LabeledLines.zip

                          Comment


                            #14
                            ok, one more question: I have got labeled lines in all my charts, but not in all my workspaces. Is there a solution?

                            Comment


                              #15
                              Hello Cassius Romarius,

                              Thanks for your reply.

                              Yes, under tools>Options>general, enable "Global Drawing Objects Across Workspaces".

                              Reference: https://ninjatrader.com/support/help...eralProperties
                              Paul H.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by mjairg, 07-20-2023, 11:57 PM
                              3 responses
                              213 views
                              1 like
                              Last Post PaulMohn  
                              Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                              4 responses
                              544 views
                              0 likes
                              Last Post PaulMohn  
                              Started by GLFX005, Today, 03:23 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post GLFX005
                              by GLFX005
                               
                              Started by XXtrader, Yesterday, 11:30 PM
                              2 responses
                              12 views
                              0 likes
                              Last Post XXtrader  
                              Started by Waxavi, Today, 02:10 AM
                              0 responses
                              7 views
                              0 likes
                              Last Post Waxavi
                              by Waxavi
                               
                              Working...
                              X