Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 -

    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        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 quantismo, Yesterday, 05:13 PM
              2 responses
              15 views
              0 likes
              Last Post quantismo  
              Started by maybeimnotrader, Yesterday, 05:46 PM
              4 responses
              23 views
              0 likes
              Last Post maybeimnotrader  
              Started by frankthearm, Today, 09:08 AM
              6 responses
              25 views
              0 likes
              Last Post frankthearm  
              Started by adeelshahzad, Today, 03:54 AM
              5 responses
              33 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by stafe, 04-15-2024, 08:34 PM
              7 responses
              32 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X