Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

my first custom indicator

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

    my first custom indicator

    I am trying to learn how to code, and tried this just to learn. It gets no errors, but doesn't plot anything. Could someone tell me what I'm missing?

    --Thanks,

    #2
    Hello, thanks for writing in. I do not see any code example or screens shot, could you post this again?

    Comment


      #3
      I uploaded this screenshot as an attachment. Do you see it this time?
      Click image for larger version

Name:	NinjaTrader_June1.png
Views:	184
Size:	56.3 KB
ID:	1254339

      Comment


        #4
        Hi, thanks for posting that. To draw any drawing tool, you will need to use the proper method. See here for a list of all the draw methods:



        Your indicator should look like this to draw a dot on the high price of every bar:

        Code:
        protected override void OnBarUpdate()
                {
                    Draw.Dot(this, "CHART DOT " + CurrentBar, false, 0, High[0], Brushes.Red);
                }​

        Comment

        Latest Posts

        Collapse

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