Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing a Profile on an Indicator

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

    Drawing a Profile on an Indicator

    Is there a way to write a custom indicator in a way that it exposes the values needed for the Profile Drawing tool to draw a profile onto an Indicator? For example, if I write a custom Indicator that exposes a Plot can the Profile Drawing tool profile the occurrances of the values of the plot?

    #2
    Hello swcooke,

    Thanks for the post.

    To clarify are you asking if you can manually draw the object on the indicator or were you asking to use the drawing tool from the indicator?

    I look forward to being of further assistance.

    Comment


      #3
      For example, imagine I expose a plot on a chart with only 10 bars. The values of the plot are 1,2,2,3,3,3,4,4,4,4.

      I would like to draw a profile over that plot to plot the occurances of each of the values in the plot. Hope that makes sense.

      Comment


        #4
        Hello swcooke,

        Unfortunately that does not help to clarify my question. Would you be doing that from an Indicator by using the Draw. method for creating drawing object or were you asking to manually draw it?



        I look forward to being of further assistance.

        Comment


          #5
          Jesse,

          I right click my chart and use the Drawing Tool called Order Flow Volume Profile on the ES. When I double click the drawn profile to view the preferences, there is an "Attach to" option. What I was asking is if there is a way to use this tool to draw a profile over a Plot that I create as a Custom Indicator to visualize a Profile of the occurances of the values of the Plot as I mentioned above. When I saw the "Attach To" option, it led me to believe there might be a way to attach it to something other than an Instrument. Hope that clarifies.

          Comment


            #6
            Hello swcooke,

            Thanks for clarifying.

            The AttachedTo description can be found in the help guide, the possible items it can be attached to include indicators. https://ninjatrader.com/support/help...sub=attachedto

            You would really only see that change to an indicator in the situation where a Strategy called AddChartIndicator and then the same indicator was used for the "this" object in the draw syntax, for example:

            Code:
            Draw.Dot(SMA(20), "Test", true, 0, Close[0], Brushes.Lime);
            There is really no suggestion to pass anything other than the "this" object though, this generally would represent where the object should be drawn.


            I look forward to being of further assistance.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            599 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            345 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            558 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X