Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Simple indicator pls

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

    Help with Simple indicator pls

    Hi,

    Iam so stupid on programming even the easy indicator in NT7. Can someone help me pls?

    Value of indicator is:

    (Moving average of Close-Open of last X bars) divided by (ATR of last X bars). And output is between 0-100%.

    Really simple, but I lost more than a week to try to programme it, but it still cant work.

    Can anyone help? I would be so thankful.¨

    Kamil

    #2
    Hello,

    Sure I can help point you in right direction,

    Can you plase clrify what time frame chart this is running on also,

    When you say Open of last X bars and ATR of last X bars, does this mean you want this to be a parameter or is there a hard number for x you can put in here?

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thank you very much.

      X is the number I could enter to indicator - Period of this indicator.

      Anyway I ll use only X = 1, 2, or 3.

      Time frame is Daily chart.

      Once more thank you for your respond.

      Comment


        #4
        so X is parameter :-)

        Comment


          #5
          Lastly I had another question before I assist.

          (Moving average of Close-Open of last X bars)

          Does this mean the (SMA(Close) - Open[0] + Open[1] + Open[3]) etc. etc.

          Is this correct?

          I look forward to assisting you further.
          BrettNinjaTrader Product Management

          Comment


            #6
            No, its SMA(Close[0] - Open[0]) for X=1 and SMA((close[0]-open[0], close[1]-open[1],...till close[x]-open[x]) for X= 1,2,3, etc

            Comment


              #7
              Hello,

              Heres a tip to get you headed the right direction.

              You will need to create your own data series.

              The data series you need is the Close[0] - Open[0].

              To do this follow this guide and create a data series that is equal to DataSeriesName.Set(Close[0] - Open[0]);



              Then use SMA(DataSeriesName, X)[0] // X Being the period of the SMA you want.


              So it would like like this SMA(DataSeriesName, Period)[0] / ATR(Period)[0]


              Let me know if I can be of further assistance.
              BrettNinjaTrader Product Management

              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
              332 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