• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw from BarTypes

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

    Draw from BarTypes

    Hi,

    It seems to me that it should be possible to draw fixed text from the BarsType code. The issue I seem to be having is getting access to NinjaScriptbase owner. Any ideas/suggestions? Thanks.

    #2
    Hello Zeos6,

    Thank you for your note.

    It would not be possible to use Draw.Fixed from within a BarsType, however you could write an indicator which depending on the Bartype could display fixed text.

    Below would be an example of an indicator which will put a warning on the chart if the bars period is not weekly.
    https://ninjatrader.com/support/foru...=7&linkid=1105

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply AlanP.
      Kind of misses the point. Of course you can write an indicator, but writing an indicator just to print a word or a phrase is clunky. Way too much overhead for such a simple thing.

      Comment


        #4
        Hello Zeos6,

        I will submit a feature request for this.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Hello Zeos6,

          Would you be able to provide a use case for this SFT?

          I look forward to your reply.
          Alan P.NinjaTrader Customer Service

          Comment


            #6
            Hi AlanP,

            I guess the main use might be if you wanted to notify the user about something specific to the BarType, or for debugging. You might simply wish to output something to the screen.

            Comment


              #7
              Hello Zeos6,

              The tracking ID for this request is SFT-3449.

              Creating an indicator or using prints in the bar type script would be immediate resolutions for what you're looking to do.

              Please let us know if you need further assistance.
              Alan P.NinjaTrader Customer Service

              Comment


                #8
                Thanks AlanP. Appreciate it.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by frankduc, Today, 07:10 AM
                0 responses
                1 view
                0 likes
                Last Post frankduc  
                Started by mbesha, Today, 07:00 AM
                0 responses
                2 views
                0 likes
                Last Post mbesha
                by mbesha
                 
                Started by faustf, Today, 06:28 AM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_PaulH  
                Started by svadukia, Today, 05:41 AM
                3 responses
                4 views
                0 likes
                Last Post NinjaTrader_PaulH  
                Started by iq200, Today, 05:47 AM
                0 responses
                2 views
                0 likes
                Last Post iq200
                by iq200
                 
                Working...
                X