• 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

Add own png diamond.

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

    Add own png diamond.

    How can i load my own png diamond shape instead of using the draw.diamond code?

    I want to use custom shape by using a png to overlay over my chart. Is that possible?

    #2
    Hello priceisking,

    The default drawing tools would not have an option to change the graphic they draw, this is all done through code and is not an image.

    If you do want to draw an image you can, however, this is something you would need to Render using OnRender rather than having a drawing object. you can find a sample of drawing an image in the following link: https://ninjatrader.com/support/foru...chart?t=107504

    Alternatively, you can take a look at the code for the drawing tools to see how they generate shapes which you could replicate in your scripts OnRender.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you so much. Will look into this. Also, any way to increase the size of the diamond or arrows? I don't see size option in the documentation. Document states that it will autosize but i want it to be bigger from the default size.

      Comment


        #4
        Hello priceisking,

        In this case, there is not a way to change the size, this is based on the chart scaling and compression. When using OnRender you can instead decide to render at any size you wish so that would generally be the way around this situation.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Ok great. Thanks. Will take a look at OnRender. If you have any other examples of OnRender being used, please send me link. Thank you again.

          Comment


            #6
            Hello priceisking,

            The best example is the SampleCustomRender indicator that comes with the platform however you can also view any of the drawing tools as they all use OnRender, specifically the shape tools.

            The helpguide is also a good resource:

            https://ninjatrader.com/support/help..._rendering.htm
            https://ninjatrader.com/support/help..._reference.htm

            There are a few indicators which use this concept as well like the pivots and zig zag.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mestril, Yesterday, 10:22 AM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by hir04068, Yesterday, 09:29 PM
            5 responses
            18 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by bubblegum, Today, 03:51 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by johnnybegoode, 05-24-2019, 10:16 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by manugarc, Today, 01:15 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X