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.


    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 techgetgame, Yesterday, 11:42 PM
                0 responses
                8 views
                0 likes
                Last Post techgetgame  
                Started by sephichapdson, Yesterday, 11:36 PM
                0 responses
                2 views
                0 likes
                Last Post sephichapdson  
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,613 views
                0 likes
                Last Post aligator  
                Started by jaybedreamin, Yesterday, 05:56 PM
                0 responses
                10 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                20 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Working...
                X