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 chbruno, Today, 04:10 PM
                0 responses
                3 views
                0 likes
                Last Post chbruno
                by chbruno
                 
                Started by josh18955, 03-25-2023, 11:16 AM
                6 responses
                436 views
                0 likes
                Last Post Delerium  
                Started by FAQtrader, Today, 03:35 PM
                0 responses
                6 views
                0 likes
                Last Post FAQtrader  
                Started by rocketman7, Today, 09:41 AM
                5 responses
                19 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by frslvr, 04-11-2024, 07:26 AM
                9 responses
                127 views
                1 like
                Last Post caryc123  
                Working...
                X