Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Region Y drawing tool

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

    Region Y drawing tool

    In starting to use this useful addition to the drawing tools i wondered if there is an easy way other than manually drawing it to have a 50% line drawn with this region Y tool.

    I have for now manually drawn or would i need to perhaps modify the tool myself and add on a custom tool for this ; if there is another way to add a line to this within the properties it would be useful to hear of

    If not currently part of this then perhaps add this a suggestion for a new feature and perhaps with a few lines to add

    thanks

    #2
    Hello,

    Thank you for the post.

    I am not certain what you mean by 50%, are you referring to 50% of the price or are you referring to making it 50% width of the chart?

    Whatever the change may be, you can duplicate and customize the tools as needed just like other NinjaScript items like an indicator. Or if this is an item you can adjust in the properties of the tool, potentially you could make a Template and then call the object from script specifying the Template.

    Draw.RegionHighlightY(NinjaScriptBase owner, string tag, double startY, double endY, bool isGlobal, string templateName)

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

    Comment


      #3
      Hello sorry i should have been clearer. Im not calling this from an indicator rather applying directly onto the chart as i review the chart. I meant a 50% line of the price range for region Y so would have the region high and then low and then a 50% line between the high and low of the region being marked with the mouse.There doesnt appear to be anything in the properties currently to have this line added; other than me manually adding after i apply region to the chart.

      thanks

      Comment


        #4
        Hello,

        Thank you for clearning that up, I was thinking another direction.

        Yes for adding another line, the most simple way would be to duplicate the tool and add the needed logic to both calculate/draw the 50% line.

        It is certainly possible to do but I could not necessarily provide a full explanation on what all would be required for that change.

        I can provide steps to duplicate the existing tool if you would like as they can be kind of tricky to duplicate.

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

        Comment


          #5
          Thank you, let me have a look at the code and i may get to you on that - or if you have some steps to hand that would be great ; i can email support on this or via here. Also perhaps i should have posted this to the Platform support thread but given i am likely to modify existing drawing tool this is probably the right thread.
          thanks

          Comment


            #6
            Hello,

            Thank you for the reply.

            Because the drawing tools can be quite complex, I have provided a video describing one way you can inherit from an existing tools base. This could be used to create simple modifications that use existing properties of the object like its prices. For more advanced development you would likely want to just create a full tool.

            Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Aviram Y, Today, 05:29 AM
            0 responses
            1 view
            0 likes
            Last Post Aviram Y  
            Started by quantismo, 04-17-2024, 05:13 PM
            3 responses
            25 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            7 responses
            34 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cls71, Today, 04:45 AM
            0 responses
            6 views
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            216 views
            1 like
            Last Post PaulMohn  
            Working...
            X