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?
    Chris L.NinjaTrader Customer Service

    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:	109
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);
                }​
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,281 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        19 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Tim-c, Today, 02:10 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        5 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        53 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Working...
        X