Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Missing a piece of the puzzle. (Referencing open of prior day)

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

    Missing a piece of the puzzle. (Referencing open of prior day)

    Hello and thank you for reading my post. I'm currently building and proving out a strategy that is working exactly as desired but I'm lacking in one area. The basics of my strategy are as follow.

    *Reference current day open.

    *If price crosses below the current day open price, open a short position. Vice versa for longs.

    What I'm wanting to add to this is I would like to reference not only the current day open price but also I want to compare that to the previous day's opening price. For example: If the current day's opening price is less than the prior day's open I want the strategy to only take shorts when crossing below the current day's opening price. Vice versa for longs. So my question is, how to I reference the prior day's opening price and compare it against the current day's opening price? I'm not by any means a coder so I'm trying to all of this within Builder and I've tried multiple ideas but have not been successful in my attempts. I did check out a few posts that were along the same vein and tried out those suggestions but I have had no success.

    I appreciate any and all feedback. Thank you

    Bmann

    #2
    Have you looked at the inbuilt indicator Prior day OHLC?
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Thanks for the reply. What I'm currently using in builder. Click image for larger version

Name:	NT.jpg
Views:	107
Size:	57.8 KB
ID:	1247301
      Last edited by Bmann777; 04-20-2023, 07:50 AM.

      Comment


        #4
        Hi Bmann777, thanks for posting. You can use the CurrentDayOHL/PriorDayOHLC indicators to calculate this so that your primary series does not need to be a daily series:

        Attached Files

        Comment


          #5
          Thank you both for the input. Got it working. I never even noticed the Current day OHL. Thank you, thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          79 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X