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 Mikey_, 03-23-2024, 05:59 PM
                3 responses
                49 views
                0 likes
                Last Post Sam2515
                by Sam2515
                 
                Started by f.saeidi, Today, 12:14 PM
                7 responses
                16 views
                0 likes
                Last Post f.saeidi  
                Started by Russ Moreland, Today, 12:54 PM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by philmg, Today, 12:55 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_ChristopherJ  
                Started by TradeForge, 04-19-2024, 02:09 AM
                2 responses
                32 views
                0 likes
                Last Post TradeForge  
                Working...
                X