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

More fun with pivots

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

    More fun with pivots

    I have set up two scripts to determine todays pivots based on the prior trading days high, low, and close data. One uses the Pivots indicator and the other does the calculations based on the GetDayBar(1) call. The good news is that they both come up with precisely the same numbers. The bad news is those numbers are wrong! I have traced it down to the close on the prior day. It is basing the calculation on the last price of the extended session rather than the market close. How do I get the actual market close price with the GetDayBar call or the Pivots indicator?

    Thanks

    Ragdoll

    #2
    Hello,

    You can change the closing price by changing the session template.

    Right click your chart -> data series -> change the session template

    For example if you're trading the ES you would change it to CME US INDEX FUTURES RTH (for the regular trading hours)

    To view all the session template on the control center -> tools -> session manager -> here you can select any session template to see its time span: http://www.ninjatrader.com/support/h...on_manager.htm


    Let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment


      #3
      That awkward moment when you realize you should have RTFM!

      thanks!

      Comment


        #4
        Happy to help that's what we're here for.

        Let me know if I can further assist.
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sastrades, Today, 09:59 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by DawnTreader, 05-08-2024, 05:58 PM
        14 responses
        45 views
        0 likes
        Last Post DawnTreader  
        Started by ldanenberg, Yesterday, 03:19 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by chemo, Today, 12:05 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by codeowl, 02-11-2019, 05:47 AM
        24 responses
        683 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X