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 jxs_xrj, 01-12-2020, 09:49 AM
        4 responses
        3,281 views
        1 like
        Last Post jgualdronc  
        Started by Option Whisperer, Today, 09:55 AM
        0 responses
        5 views
        0 likes
        Last Post Option Whisperer  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        8 responses
        58 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by halgo_boulder, 04-20-2024, 08:44 AM
        2 responses
        22 views
        0 likes
        Last Post halgo_boulder  
        Started by mishhh, 05-25-2010, 08:54 AM
        19 responses
        6,189 views
        0 likes
        Last Post rene69851  
        Working...
        X