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:	78
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:

        https://ninjatrader.com/support/help...ml?drawing.htm

        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 SherwoodJP, 08-31-2023, 02:58 PM
        2 responses
        69 views
        0 likes
        Last Post LunaticEssence  
        Started by habibalex, 01-10-2017, 01:02 PM
        57 responses
        8,639 views
        0 likes
        Last Post yeshe
        by yeshe
         
        Started by pennywise, 06-16-2023, 03:18 AM
        77 responses
        1,752 views
        0 likes
        Last Post GTBrooks  
        Started by supremeMarshall, Today, 10:29 AM
        10 responses
        49 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by bsmith, Today, 02:42 PM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X