Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems building my own momentum

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

    Problems building my own momentum

    I'm trying to bulid my own momentum with different input and reading your help book, I understand that Close[0]-Close[14] should be like a 14 period momentum of closing prices, but it isn't, in fact the [14] looks like if I was trying to "call" another serie of data..so my question:

    Imagine NT wouldn't have a "Momentum" indicator already loaded, and I wanted to build one, how would you construct one with " Close[0]-Close[x] " data?

    I've tried everything and it doesn't work like the help reference tells

    Thanks in advance

    #2
    pstrusi, sorry I'm not following what issueing you feel running into : Close[0] - Close[14] would mean you substract the Close price from 14 bars ago from the current bar's Close price (the last closed one with CalculateOnBarClose = true). This would represent the 'raw' momentum so no smoothing, percentage / relative comparison etc be done to it. If you chart your own outcome and compare to NT's momentum, what would you see? What would you expect instead?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      In theory it should be like you say but something happens that it doesn't. Try to build an indicator like you say and you'll see that when you call it on a chart it doesn't come out anything, no result, no plot at all

      Anyway I solved this issue in other way, however thanks for your quick attention

      Comment


        #4
        Originally posted by pstrusi View Post
        In theory it should be like you say but something happens that it doesn't. Try to build an indicator like you say and you'll see that when you call it on a chart it doesn't come out anything, no result, no plot at all

        Anyway I solved this issue in other way, however thanks for your quick attention
        The issue is then somewhere else, check the log tab of the NT Control Center for any errors in those cases where codes not work as expected for you.

        You likely simply missed a check for enough bars at your OnBarUpdate() start -

        Last edited by NinjaTrader_Bertrand; 03-30-2012, 05:34 AM.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thanks a lot, I think that's it

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Segwin, 05-07-2018, 02:15 PM
          10 responses
          1,769 views
          0 likes
          Last Post Leafcutter  
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          30 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          943 views
          0 likes
          Last Post spwizard  
          Started by Max238, Today, 01:28 AM
          0 responses
          10 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by rocketman7, Today, 01:00 AM
          0 responses
          7 views
          0 likes
          Last Post rocketman7  
          Working...
          X