Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PriorDay OHLC() values are "0"

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

    PriorDay OHLC() values are "0"

    Update...right after i finally decide to post i go back to Priorday section and found my answer.

    Had introduced priorday a few days ago when i first started on NT, and have done a lot of messing since. Didn't undesrtand the syntax.

    I had PriorDayOHLC().Close
    instead of PriorDayOHLC().PriorClose

    --------------------------------------------------------------------

    HI,

    I have a strategy that looks at the previous days close etc, but for some reason these values are not working. See the attached output.

    If i replace with Close[1] and Open[0] i get output, but obviously only useful for the first bar of the next day, and does not cover yesterdays open.

    I thought PRiorDay would be the answer. Is there some trick to getting these to work?

    Cheers

    Print ("CurrentDayOHL().Open[0]:" + CurrentDayOHL().Open[0].ToString());
    Print (
    "PriorDayOHLC().Open[0]:" + PriorDayOHLC().Open[0].ToString());
    Print (
    " PriorDayOHLC().Close[0]:" + PriorDayOHLC().Close[0].ToString());
    Attached Files
    Last edited by Aussiemike; 11-21-2012, 06:33 AM.

    #2
    Thanks for the update and glad to hear it works now as expected for you in your script.

    Comment


      #3
      Hi
      I'm using "prior day" as well, it is an excellent indicator.
      I'm using it to see if the prior gaps has been closed (actually I'm using only the "close" for that, but it is not the subject).
      My question is: is ther any way to make the line, indicate the "close", to continue until it'll hit a bar (not necessarily in the same day, but later on)?
      Meaning, I want to see if that gap has been closed?
      Thank you

      Ruby

      Comment


        #4
        Hi

        (attached a pic.)Click image for larger version

Name:	gap.jpg
Views:	1
Size:	247.4 KB
ID:	866464

        I'm using "prior day" as well, it is an excellent indicator.
        I'm using it to see if the prior gaps has been closed (actually I'm using only the "close" for that, but it is not the subject).
        My question is: is ther any way to make the line, indicate the "close", to continue until it'll hit a bar (not necessarily in the same day, but later on)?
        Meaning, I want to see if that gap has been closed?
        Thank you

        Ruby

        Comment


          #5
          Hello Ruby,
          Yes, you can do so by further customizing the indicator.

          To develop/modify your custom indicator/strategies you can contact any of our independent NinjaScript consultants. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X