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

Determine the BarsAgo or DateTime for the bar that had the lowest (or highest) price

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

    Determine the BarsAgo or DateTime for the bar that had the lowest (or highest) price

    Hi Paul,

    Thanks for this explanation. Is there a way to determine the BarsAgo or DateTime for the bar that had the lowest (or highest) price in the last X bars?

    Thanks,
    Tim






    #2
    Hi Tim, thanks for posting.

    If the future please crate a new topic and link to the old topic you are referencing
    https://ninjatrader.com/support/foru...rs#post1169049

    Your questions has been discussed in the past here:
    https://ninjatrader.com/support/foru...ars#post813083

    Edit:
    I noticed you want to get the barsago value of the minumum bar. You would need to make a custom function that will iterate through x bars and save the minimum value throughout the iteration. Theres an example here on this publicly available link on finding the minimum value in an array:
    In this article we will learn, how to find smallest elements from a list of integers? Given an integer array and we have to find the smallest element among all array elements.


    Kind regards,
    -ChrisL
    Last edited by NinjaTrader_ChrisL; 08-25-2021, 09:12 AM.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chris,

      I'll do that in the future.

      I look forward to learning how to do this!

      -Tim

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Tim-c, Today, 02:10 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      2 views
      0 likes
      Last Post Taddypole  
      Started by chbruno, 04-24-2024, 04:10 PM
      4 responses
      50 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      10 responses
      399 views
      1 like
      Last Post beobast
      by beobast
       
      Started by lorem, Yesterday, 09:18 AM
      5 responses
      25 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X