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

3-day rolling pivot

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

    3-day rolling pivot

    Hi. I need to create an indicator for 3-day rolling pivot (highest of last 3 days minus lowest of last 3 days, divided by close of last day)

    There is highestbar() formula, but I don't see the "timeframe" parameter. If I want to use this indicator for intraday (e.g. 5min chart), what API can I use to get the highest and lowest price the last 3 days?

    #2
    Hi ssg10 - you can take a look at this script from our sharing - http://www.ninjatrader-support2.com/...id=131&catid=1
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I Need It To

      I need the three day rolling pivot as well, anyone have it by chance?

      The formula you posted is incorrect for it though, it is

      3 day high + 3 day low + third day close = *
      3 day high + 3 day low = *

      subtract the two above figures to get the pivot diff which = *

      then add the pivot diff to the 3 day high + 3 day Low + 3rd day cloe for the upper pivot

      Subtract the pivot diff from the same = the pivot low

      any one have it or can make it? I really need this indicator right now...

      TIA

      Comment


        #4
        Unfortunately I'm not aware of a script for this, as a last resort you can contact those NinjaScript consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm
        BertrandNinjaTrader Customer Service

        Comment


          #5
          My Code Is Incorrect

          Thanks for the reply,

          My code is incorect also,

          this


          3 day high + 3 day low + third day close = *
          3 day high + 3 day low = *

          Needs to be:


          3 day high + 3 day low + third day close divided by 3 = *
          3 day high + 3 day low divided by 2 = *

          forgot to add the "divided by"

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,279 views
          0 likes
          Last Post Leafcutter  
          Started by WHICKED, Today, 12:45 PM
          2 responses
          19 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by Tim-c, Today, 02:10 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          5 views
          0 likes
          Last Post Taddypole  
          Started by chbruno, 04-24-2024, 04:10 PM
          4 responses
          51 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Working...
          X