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

Getting a close time for Pivot Points that also works on Range charts

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

    Getting a close time for Pivot Points that also works on Range charts

    Hi,

    I'd like to get a custom close price from a specific time for a Pivot Points indicator and have that work on my minute charts as well as my range chart.

    Any ideas how to do that?

    Thank you.

    #2
    Hello Bob-Habanai,

    Thank you for your post.

    If you are able to get the actual time from what you are looking for in the Pivot Points indicator, you could use GetBar() to get the bar index for the timestamp provided:


    You could then get the barsAgo index by subtracting that value from CurrentBar and figure out what the Close price for that barsAgo index was.

    Please let us know if we may be of further assistance.

    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    41 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X