Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I'm trying to make my first indicator without success

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

    I'm trying to make my first indicator without success

    Hello Forum folks,

    I'm trying to make my first indicator without success. I just need a few markers on my chart.
    May I ask someone to make me a simple ADX > 80 print red dot on chart, ADX< 20 print blue dot on chart, 8 period.. Well, I not sure if it's simple, but if you can please post a zip file or the script so I can study it.

    Thanks so much for any help,
    Mike

    Ninja 6.5 user..

    #2
    Mike, I would unfortunately not have the script for you, but you can generate it via point and click as strategy in our wizard interface - http://www.ninjatrader-support.com/H...rdScreens.html

    As an alternative should you desire to venture into custom NinjaScript coding, those tutorials here would be a great start -

    Comment


      #3
      Hi,

      I am trying to code my first indicators using the tutorial for NT7. It when well for the first one (
      Intermediate - Your own SMA). However, I could not compile the next two (

      Intermediate - Historical Custom Data Series) and (

      Advanced - Custom Plot Colors via Thresholds). I had errors on line 74 and 76 in the Properties code.

      Comment


        #4
        Originally posted by mnoel View Post
        Hi,

        I am trying to code my first indicators using the tutorial for NT7. It when well for the first one (
        Intermediate - Your own SMA). However, I could not compile the next two (

        Intermediate - Historical Custom Data Series) and (

        Advanced - Custom Plot Colors via Thresholds). I had errors on line 74 and 76 in the Properties code.
        mnoel, would you mind attaching the code you have created so far for those? You can attach the CS files directly from the indicator folder, we'll then have a look and advise.

        Comment


          #5
          Hi Bertrand,

          Here are the files.

          Thanks in advance.
          Attached Files

          Comment


            #6
            mnoel,

            The issue is in your MyCustomDataSeries on line 28.

            Code:
            private Dataseries myDataSeries; // Declare a DataSeries variable
            This needs to be capitalized S on Series like this:

            Code:
            private Data[SIZE=4][COLOR=Red][B]S[/B][/COLOR][/SIZE]eries myDataSeries; // Declare a DataSeries variable
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              mnoel,

              The issue is in your MyCustomDataSeries on line 28.

              Code:
              private Dataseries myDataSeries; // Declare a DataSeries variable
              This needs to be capitalized S on Series like this:

              Code:
              private Data[SIZE=4][COLOR=Red][B]S[/B][/COLOR][/SIZE]eries myDataSeries; // Declare a DataSeries variable
              Thank you very much Josh. I have been able to compile it now.

              Comment

              Latest Posts

              Collapse

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