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 geotrades1, Today, 10:02 AM
        0 responses
        1 view
        0 likes
        Last Post geotrades1  
        Started by rajendrasubedi2023, Today, 09:50 AM
        0 responses
        10 views
        0 likes
        Last Post rajendrasubedi2023  
        Started by ender_wiggum, Today, 09:50 AM
        0 responses
        4 views
        0 likes
        Last Post ender_wiggum  
        Started by bmartz, Today, 09:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by geddyisodin, Today, 05:20 AM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X